You need to sign in to do that
Don't have an account?
IvanWu
How to get all the Exceptions when execute the DML operation
hello ,everyone ,i have a batch of records and i have put them into a list ,i used the DML to insert them,i warped up the DML in the try-catch
what i want is whenever there is a exception occured ,i can catch it, at the same time ,the program can still run and catch the exception constantly.
is there any method ? any sugguestions would be appreciate!
what i want is whenever there is a exception occured ,i can catch it, at the same time ,the program can still run and catch the exception constantly.
is there any method ? any sugguestions would be appreciate!
Please check sample code below.
More Info :
http://www.salesforceadda.com/2017/08/insert-vs-databaseinsert-in-salesforce.html
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_database_saveresult.htm
Hope this helps you!
Thanks
Varaprasad
For Support: varaprasad4sfdc@gmail.com