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

batch apex code for account
can someone provide me batch apex code for the folowing requirement ?
1 - if account name and billing address are same then it will not insert record and through error .
2 - if account name and phone are same then it will not insert and through error .
is there any other way how to achieve this . i tried for trigger but number of records are more so it is throwing governemnt limit error .
Thanks,
1 - if account name and billing address are same then it will not insert record and through error .
2 - if account name and phone are same then it will not insert and through error .
is there any other way how to achieve this . i tried for trigger but number of records are more so it is throwing governemnt limit error .
Thanks,
You can bulkify your trigger and decrease the batch size so that it will not hit governor limit error. Comment your trigger code.