You need to sign in to do that
Don't have an account?
Stefan Senegeac D.
Trigger to find duplicate entries based on email and update existing record
So far I've been able to identify duplicate entries on Account based on the email address and simply not insert them. The new records, even though they are duplicates, contain some new info (a custom id) and I want to assign that id to the existing record. Easier said than done. I've tried with before insert trigger to no luck then after insert with 'merge old new' but it won't let me (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) or (merge failed with invalid id field).
Is what I'm trying to do possible with apex/trigger? If so could you point me to some resources? If not, what's an alternative route?
Thanks.
Is what I'm trying to do possible with apex/trigger? If so could you point me to some resources? If not, what's an alternative route?
Thanks.
[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_dml_examples_merge.htm