A Salesforce administrator is reviewing the automation architecture for a custom object that utilizes Fast Field Update flows, Apex triggers, and custom validation rules. When a user updates and saves a record, which TWO statements accurately describe the sequence in which Salesforce processes these automation components?
- Before-save Record-Triggered Flows execute prior to custom validation rules and Apex before triggers.Answer
- Apex after triggers execute prior to after-save Record-Triggered Flows and process automation.Answer
- CCustom validation rules are evaluated before before-save Record-Triggered Flows perform field updates.
- DAfter-save Record-Triggered Flows run before standard Assignment Rules and Auto-Response Rules are processed.
- EParent record roll-up summary calculations occur before the record is saved to the database.
Answer
Before-save Record-Triggered Flows execute prior to custom validation rules and Apex before triggers, and Apex after triggers execute prior to after-save Record-Triggered Flows.
In the standard Salesforce Order of Execution, before-save record-triggered flows execute prior to Apex before triggers and custom validation rules. Additionally, once the record is initially saved to the database, Apex after triggers fire before Assignment Rules, Auto-Response Rules, Workflow Rules, and after-save record-triggered flows.
Step-by-Step Solution
Key Concept
Salesforce Save Order of Execution
Estimated Time:1m 15s