Question 101 · 279 in bank
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
Show answer
Answer: B
Explanation
yes. You can surely suppress the error using try catch, but the insertion of other record within the same transaction will be canceled as well. Since try catch is "AllOrNone".
Source: Adapted from community discussion — Soliton321
