An organization uses a custom object named Equipment_Maintenance__c. An administrator configures the following features on the object:
1. A Before-Save Record-Triggered Flow that calculates and sets the Total_Cost__c field to equal Parts_Cost__c + Labor_Cost__c.
2. A Custom Validation Rule with the formula Total_Cost__c > 5000 that displays an error to prevent saving high-cost maintenance records without manager approval.
3. An After-Save Record-Triggered Flow that creates a follow-up task for the facility manager.
4. A Workflow Rule that sends an email notification to the maintenance supervisor.
A technician updates an existing record, changing Parts_Cost__c to 3,000 and Labor_Cost__c to 3,000 (making the calculated total $6,000), while leaving Total_Cost__c blank on the page layout.
Which statement accurately describes how Salesforce processes this save operation according to the order of execution?
- The Before-Save Record-Triggered Flow executes first to set Total_Cost__c to $6,000; then the Custom Validation Rule evaluates the updated Total_Cost__c value and blocks the record from saving.Answer
- BThe Custom Validation Rule evaluates Total_Cost__c using the blank value first and passes; then the Before-Save Record-Triggered Flow populates Total_Cost__c with $6,000.
- CThe record is saved to the database first; then the Custom Validation Rule and Before-Save Record-Triggered Flow run concurrently before Workflow Rules execute.
- DThe Workflow Rule evaluates Total_Cost__c before the Before-Save Record-Triggered Flow populates the calculated field value.