You need to sign in to do that
Don't have an account?

batch code
plz help with code
Merging duplicate records in leads based on first name and last name. Batch should run every day.
Merging duplicate records in leads based on first name and last name. Batch should run every day.
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
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.
- https://salesforce.stackexchange.com/questions/22365/find-duplicate-records-based-on-multiple-fields
- http://developer.force.com/cookbook/recipe/using-batch-apex-to-reassign-account-owners
Please let us know if this helps.happy to help further.
Kindly mark this as solved if the information was helpful.
Thanks,
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.