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
MSVRadMSVRad 

Trigger for Account Merge?

We have a Custom Object related to the Account Object called "Schedule" (Displays as a related list on the Account page). We have a trigger written saying that for an Account the Account to Schedule relationship can only be one to one. 

 

When a user merges accounts multiple schedules can be added to the master which is not allowed but the trigger we have written does not catch this. So I am wondering if there is a way to write a trigger where on a merge it will check if multiple Schedules are trying to be added to the master Account. Then display an error message so that the user needs to go back and remove the extra schedules before they can proceed with the merge.

 

Really, if anything else I would like more information about how a merge works behind the scenes.

 

Thanks in advance for any help or suggestions.

lucena69lucena69

Hi,

I would be interested in learning more about this as well if anyone has any pointers.

Thanks,

-John