A logistics company manages transport assets using a custom object named Fleet_Vehicle__c. When an operator updates a vehicle record and marks the Service_Completed__c checkbox as true, the system must immediately populate the Next_Inspection_Date__c and set the Status__c field to 'Ready for Dispatch'. No external web services, email alerts, or related object records need to be updated. Which flow type and trigger configuration provides the most efficient solution for this requirement?
- AA Record-Triggered Flow configured for Actions and Related Records that executes after the record is saved, utilizing an Update Records element to modify the vehicle fields.
- A Record-Triggered Flow configured for Fast Field Updates that updates fields on the triggering Fleet_Vehicle__c record before it is saved to the database.Answer
- CAn Autolaunched Flow that iterates over vehicle records in a loop and performs an Update Records operation within each iteration.
- DA Record-Triggered Flow configured after-save that relies on standard validation rules executing after the flow to verify updated field values.
Answer
A Record-Triggered Flow configured for Fast Field Updates that updates fields on the triggering Fleet_Vehicle__c record before it is saved to the database.
A Record-Triggered Flow configured for Fast Field Updates (before-save) runs before the record is saved to the database. It updates fields directly on the $Record global variable in memory, running up to 10 times faster than after-save flows and eliminating the need for an explicit Update Records element or additional DML transactions.
Step-by-Step Solution
Key Concept
Selecting Fast Field Updates (Before-Save) versus Actions and Related Records (After-Save) in Record-Triggered Flows
Estimated Time:1m 15s