You need to sign in to do that
Don't have an account?
Rabbani sayyed 8
I have a requirement when a batch is running and if there is some failure occuring in the records ,a msg should be sent .How do i achieve this? any suggestions on this ?
I have a requirement when a batch is running and if there is some failure occuring in the records ,a msg should be sent .How do i achieve this? any suggestions on this ?
1. Implement Database.Stateful in your batch
2. Manage list of errors in a list
3. send email inside finish method with all error details (single email.)
here is one sample code for this :
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
All Answers
1. Implement Database.Stateful in your batch
2. Manage list of errors in a list
3. send email inside finish method with all error details (single email.)
here is one sample code for this :
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
Regards
Rabbani