Order of Execution in Salesforce Quiz

This quiz is designed to give a visual representation to the order of execution steps.

  • Each step of the order of execution is randomized at the start
  • You can drag and drop each step to a new position
  • The number on each step represents the order position
  • When you are finished click the button at the bottom to check the answers
  • Your answers will be locked in place once you submit them, to take the quiz again click reset quiz
1. Saves the record to the database, but doesn't commit yet
2. Executes flows that make before-save updates.
3. Loads the new record field values from the request and overwrites the old values.
4. Executes all before triggers.
5. Executes duplicate rules
6. Loads the original record from the database or initializes the record for an upsert statement.
7. Runs most system validation steps again
8. Executes auto-response rules.
9. Executes processes and flows launched via processes and flow trigger workflow actions
10. Executes workflow rules.
11. Executes assignment rules.
12. If there are workflow field updates, updates the record again.
13. If the record was updated with workflow field updates, fires before update triggers and after update triggers one more time
14. Executes all after triggers.
15. if parent record is updated, and a grandparent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the grandparent record
16. Executes entitlement rules.
17. Executes escalation rules.
18. Commits all DML operations to the database.
19. Executes post-commit logic, such as sending email.
20. Performs calculations and updates the roll-up summary field in the parent record.
21. Executes Criteria Based Sharing evaluation.