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
Pankaj PariharPankaj Parihar 

batch code

plz help with code
Merging duplicate records in leads based on first name and last name. Batch should run every day.
 
Dev_AryaDev_Arya
Hi Pankaj,

Are you looking for the direct code for your problem or some references?
Well I can help you with the references and when you have problem formulating your user case, then feel free to post here
Batch Apex:
http://developer.force.com/cookbook/recipe/using-batch-apex-to-reassign-account-owners

Merge Account:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_dml_examples_merge.htm

Cheers,
Dev
NagendraNagendra (Salesforce Developers) 
Hi Pankaj,

May I request you please elaborate why would you like to use batch apex in particular for merging duplicate records?

Is there any possibility that the duplicate records are being generated on a daily basis?

I would suggest you please check with below link from stack exchange community with a similar issue and a suggested workaround. Please let us know if this helps.

happy to help further.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra
Pankaj PariharPankaj Parihar
Hi Dev,Nagendra
actully i have assigned with a 5 case study on batch apex but i dont know how to do.
i m very new to salesforce and codeing .
if u can provide me code it will be gratefull... i will understand the code.