A developer created a new after insert trigger on the Lead object that creates Task records for each Lead. After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart. Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task insert statement, so that manual restarts are not needed? A. Deactivate the trigger before the integration runs. B. Use a try-catch block after the insert statement. C. Use the Database method with allOrNone set to false. D. Remove the Apex class from the integration user’s profile.  Suggested Answer: C Community Answer: C This question is in CRT-450 Salesforce Certified Platform Developer I Exam For getting Salesforce Certified Platform Developer I Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Salesforce. Trademarks, certification & product names are used for reference only and belong to Salesforce. The website does not contain actual questions and answers from Salesforce's Certification Exams.
Please login or Register to submit your answer