You need to sign in to do that
Don't have an account?
![Soubhagya Ranjan 2 Soubhagya Ranjan 2](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
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.