A developer is writing a complex application involving triggers, workflow rules, Apex classes, and processes. The developer needs to carefully consider the order of execution when developing the application. 1. Before Triggers 2. After Triggers 3. Post commit logic such as sending email 4. DML committed to the database 5. Workflow rules 6. Roll-up summary calculations In what order do the following operations execute?
Select an option, then click Submit answer.
Reference / correct answer:
Most accepted answer: A. 1, 2, 5, 6, 4, 3
Community votes: A=2
Selected Answer: A 1,2,5,6,4,3 Before Triggers After Triggers Workflow rules Roll-up summary calculations DML committed to the database Post commit logic such as sending email upvoted 1 times
Selected Answer: A This helps me to memorize: VBVDAAAWPER system validation before trigger custom validation duplicate after trigger assignment auto response workflow process escalation rollup summary commit post commit upvoted 4 times
Order of execution diagram: https://architect.salesforce.com/fundamentals/architecture-basics#Database_Manipulation upvoted 1 times