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
Alex.AcostaAlex.Acosta 

Salesforce Merge Within APEX

Is it possible to merge multiple records at once as within the API? I seem to be having issues with this.

 

http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_calls_merge.htm|StartTopic=Content%2Fsforce_api_calls_merge.htm|SkinName=webhelp

 

IE: potential to do 200 merges within a batch execute of a trigger/class/method/extension and not have to waste your precious DML statements for multiple merges limited to governor limits.

Alex.AcostaAlex.Acosta

Has anyone had this issue in the past? If so how did you get past this?

Any suggestions would also be appreciated

chris587chris587

Alex,

 

Did you ever figure out how to do batch merging?  I'm running in to this issue right now myself.

Alex.AcostaAlex.Acosta

Nope, though I did mention it to one of the Salesforce Developers at Dreamforce '12. They said they would take a look at it, but I had to end up using a batch class to handle this. The batch class was being handled through a schedulable class