+ Start a Discussion
Kolade LawalKolade Lawal 

Can someone help me write a trigger for cascading updates of child records that are reparented as a result of a merge operation?

When two accounts have been merged, the child Contact record that's reparented isn't getting updated with the new Account because it's not triggered to do so.  Apparently this is one of the operations that doesn't invoke a trigger automatically (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_ignoring_operations.htm), so I'm having to write one for this particular scenario.  I'm not very experienced at writing Apex Triggers so can someone please assist me in what that code would be?

Thanks in advance!
Kolade LawalKolade Lawal
@Abhishek, do you have any experience with this?