An administrator is configuring automation for a custom Equipment_Inspection__c record in Salesforce. The configuration includes custom validation rules, a before-save record-triggered flow (fast field updates), an after-save record-triggered flow (actions and related records), and parent roll-up summary fields.
Which two statements accurately describe how Salesforce processes these automation components during the order of execution? (Choose two.)
- Before-save record-triggered flows evaluate and update field values prior to the execution of custom validation rules.Cevap
- BCustom validation rules execute before before-save record-triggered flows to prevent invalid data from entering flow logic.
- Roll-up summary field calculations on related parent records are evaluated after after-save record-triggered flows have executed.Cevap
- DAfter-save record-triggered flows execute before Apex after triggers fire on the record being updated.
- EThe database commit operation occurs immediately prior to running after-save record-triggered flows to lock in record changes.
Cevap
The statements confirming that before-save record-triggered flows execute prior to custom validation rules and that roll-up summary field calculations occur after after-save record-triggered flows are correct.
In the standard Salesforce order of execution, before-save record-triggered flows execute before Apex before triggers and custom validation rules. This allows declarative logic to prepare values that validation rules can subsequently check. Later in the cycle, after the record is written to the database and after-save record-triggered flows have run, Salesforce calculates roll-up summary fields on parent records before performing the final database commit.
Adım Adım Çözüm
Anahtar Kavram
Salesforce Order of Execution sequence for record-triggered flows, validation rules, triggers, roll-up summaries, and database commits.
Tahmini Süre:1m 15s