An administrator is setting up automation on the Opportunity object. A before-save record-triggered flow is configured to automatically update a field value, while a custom validation rule is also enabled on the object to check for required inputs upon saving. When a record is updated and saved, which of the following executes first according to the Salesforce order of execution?
- Before-save record-triggered flowCevap
- BCustom validation rules
- CAfter-save record-triggered flow
- DWorkflow rules
Cevap
The before-save record-triggered flow executes first.
In the Salesforce order of execution, before-save record-triggered flows (and Apex before triggers) execute prior to custom validation rules. This design ensures that field modifications made automatically by before-save automation are checked by custom validation rules before data is saved to the database.
Adım Adım Çözüm
Anahtar Kavram
Salesforce Order of Execution sequence between flows and validation rules