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
akallioWileyakallioWiley 

How does one perform a bulk merge?

According to this post it is not possible to make a trigger to merge records in bulk. So the workaround to that challenge, in my simple mind, is to make a trigger that does the reparenting explicitly. There are 2 drawbacks to this that I can see. One is that I will have write a lot more code...writting code to find and update all child records seems like a lot more than simply using the merge method. The second is that if I ever add a relationship to the Contact obect I will have to add to the trigger. 

 

So, I am curious to know if anybody else has found a way to do this. I have a hunch about using @future, but I have a poor understanding of what that is all about.