A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed: Which type of exception will this trigger cause?
C is correct. You don't make a DML statement in a before trigger as it gets implicitly updated after the trigger ends. The before trigger runs before the DML operation. https://www.sfdcpoint.com/salesforce/apex-trigger-in-salesforce/
Although there are many typos in the example which would prevent the code from saving / running.
c, since DML stmt is inside for loop and can cause limit exception.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.CRT-450 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
venkatasunilr
Highly Voted 3 years, 7 months agoryuu
Highly Voted 2 years, 11 months agoirina_735
Most Recent 8 months, 2 weeks ago1vanTT
1 year agoInfoash
3 years, 8 months agoam1
4 years, 1 month ago