Question

Difficulty: EasyOrder of Execution and Automation Considerations

A Salesforce administrator is configuring data quality controls and automation on a custom object. Which two automation or validation events execute BEFORE custom validation rules during the Salesforce record save order of execution? (Select two answers.)

  1. System validation rules (such as checking required fields and field data formats)Answer
  2. Before-save record-triggered flowsAnswer
  3. C
    After-save record-triggered flows
  4. D
    Workflow rules and automated field updates
  5. E
    Case or Lead Assignment rules

Answer

System validation rules and before-save record-triggered flows execute before custom validation rules during the Salesforce record save order of execution.
In the Salesforce order of execution, system validation rules (verifying standard required fields and length constraints) and before-save record-triggered flows execute prior to custom validation rules. This allows before-save flows to populate or adjust fields before custom validation logic evaluates the record.

Step-by-Step Solution

1
Analyze the standard sequence of events when saving a record in Salesforce.
Salesforce first checks system validation rules, then executes before-save record-triggered flows, and subsequently runs custom validation rules.
Running before-save flows prior to custom validation rules allows automated field updates on the triggering record to be validated before committing changes.
2
Evaluate post-validation automation events.
After-save flows, assignment rules, and workflow rules execute after custom validation rules have completed.
Custom validation rules must pass to ensure data integrity before record updates proceed to database insertion and downstream automation.

Key Concept

Salesforce Order of Execution: Pre-Validation Automation Steps
Rate this question