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
vinni shreevinni shree 

Code for merging accounts

Hi i have use case scenario where all the duplicate accounts should be merged with the one main account and its associated contacts also dhould be added to main account 

I'm unable to find the correct approach for it please help me with the code or approach.

Thank you

Best Answer chosen by vinni shree
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Vinni,

This seems to be duplicate for the below question.

https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=ALLQUESTIONS&id=9062I000000R2ZxQAK

I have commneted for some clarity on it . Can you close this question by marking it as best answer so it avoids duplicate efforts for others.

Thanks,