Salesforce Certified Platform Developer II — Question 81
A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired.
What is the optimal way to accomplish this?
Answer options
- A. Use a MassEmailMessage() with an Apex Trigger.
- B. Use a Workflow Email Alert.
- C. Use an Email Alert with Process Builder.
- D. Use a SingleEmailMessage() with an Apex Trigger.
Correct answer: C
Explanation
The correct answer is C because using an Email Alert with Process Builder allows for better scalability and ensures that the criteria are evaluated after Workflow Rules. The other options either do not scale as well (A and D) or do not meet the requirement of evaluating criteria after Workflow Rules (B).