+ Start a Discussion
Rodolfo CalvoRodolfo Calvo 

MergeContacts method and VF page

Hello to all, 

I am trying to develop a method to merge contacts from one simple account, but I need to merge more than 3 contacts, could someone give tutorial about merging contacts in code please? 

Thanks in advance. 
sfdcsushilsfdcsushil
Why are you not using Standard Merge Contact functionality in salesforce. If you go to account, under contacts related list, you can find Merge button. You can merge contacts using that. 
Rodolfo CalvoRodolfo Calvo
Because the merge contact function in salesforce only allows me to merge 3 contacts, I need to merge more than 3. 
sfdcsushilsfdcsushil
ok. Here is the thing. If you go this route, you will have to write lot of code for merge main contact fields and related records. Also there is lot of maintainence effort, once you add new field, you need to change code(or you can make code dynamic). Also once you add any lookup to contact in any object, you will have to modify merge code to include that object. So consider all this in mind before jumping to any code development. You may try looking up some app exchange product that may solve your problem in less time and effort. 
Rupal KumarRupal Kumar

Hi Rodolfo Calvo,
See below links
                 http://salesforce.stackexchange.com/questions/49220/ui-for-custom-merge



Thanks
Rupal Kumar
Mirketa Software Pvt Ltd
http://mirketa.com/index.html
 
Rodolfo CalvoRodolfo Calvo
Rupai Kumar, the information from 
http://salesforce.stackexchange.com/questions/49220/ui-for-custom-merge is wrong, the clases show a lot of errors. It is not possible to merge according those scripts.