function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
carramrod81carramrod81 

Catching information regarding Record Merge

Is there any way to implement Apex trigger like functionality on a before/after merge? Before the merge is called, i want to do some housecleaning and need at least the recordid of the master record and that of the discarded or merged records.

 

I know that you can't create a trigger like :  trigger autoAcceptRecord on Account (before merge) , but how can I mimic that functionality? As we have an external integration, we need to be able to know when duplicates in SFDC were merged so we can either change the ID in the other system, or delete the duplicate record on the other system and re-update the new master that was selected during the merge in SFDC.