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.
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:

Merge Account:

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.

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.