An administrator is reviewing the sequence of operations that occur when a record is saved in Salesforce. Place the following automation events and validation checks in the correct order of execution from earliest (first) to latest (last).
- 1Before-Save Record-Triggered Flows
- 2Custom Validation Rules
- 3Apex After Triggers
- 4Workflow Rules
Answer
The correct order of execution from first to last is: Before-Save Record-Triggered Flows, followed by Custom Validation Rules, then Apex After Triggers, and finally Workflow Rules.
In the Salesforce order of execution, before-save record-triggered flows run before custom validation rules. Once validation passes and the record is saved to the database, Apex after triggers execute. Workflow rules run later in the sequence, after Apex after triggers and assignment rules complete.
Step-by-Step Solution
Key Concept
Salesforce Record Save Order of Execution