An administrator at an energy services firm is configuring automation for a custom Project_Milestone__c object. The configuration includes custom validation rules, duplicate rules, a before-save record-triggered flow (fast field update), and an after-save record-triggered flow. When a user creates and saves a new Project_Milestone__c record, which two statements correctly describe how Salesforce evaluates these automation components in the order of execution? (Select two.)
- The before-save record-triggered flow updates field values on the record prior to the evaluation of custom validation rules.Answer
- Custom validation rules execute before the record is saved to the database and before after-save record-triggered flows run.Answer
- CCustom validation rules evaluate prior to the execution of the before-save record-triggered flow.
- DThe after-save record-triggered flow executes before the record is initially saved to the database and before duplicate rules run.
- EDuplicate rules are evaluated before the before-save record-triggered flow executes.
Answer
The before-save record-triggered flow updates field values prior to the evaluation of custom validation rules, and custom validation rules evaluate before the record is written to the database and before after-save flows execute.
In the standard Salesforce order of execution on save, before-save record-triggered flows (fast field updates) execute before custom validation rules. Custom validation rules and duplicate rules are then evaluated prior to the initial database save, while after-save record-triggered flows execute later in the process after the record has been written to the database.
Step-by-Step Solution
Key Concept
Salesforce Order of Execution sequence between Before-Save Flows, Custom Validation Rules, and After-Save Flows
Estimated Time:1m 15s