A business analyst requests an automation solution for a custom object named Property_Appraisal__c. Whenever a new appraisal record is created or edited, the system must calculate an adjusted valuation and update the Appraisal_Status__c field on that same record before it is committed to the database. The solution must minimize transaction execution time and avoid triggering an additional save cycle. Which flow type and trigger configuration should be implemented to meet these requirements?
- AA Record-Triggered Flow configured for Actions and Related Records that uses an Update Records element to modify the triggering record.
- BAn Autolaunched Flow that iterates over records in a loop element and executes an individual Update Records data manipulation within each cycle.
- A Record-Triggered Flow configured for Fast Field Updates that updates field values on the triggering record before database storage.Cevap
- DA Record-Triggered Flow configured to run asynchronously after save under the expectation that standard validation rules evaluate post-commit.
Cevap
A Record-Triggered Flow configured for Fast Field Updates that updates field values on the triggering record before database storage.
The correct solution uses a Record-Triggered Flow configured for Fast Field Updates (before-save). When field updates only affect the record that triggered the flow, before-save flows update values in memory prior to the record being saved to the database. This approach avoids additional DML statements, avoids re-running system validation rules or apex triggers, and delivers significantly faster execution times.
Adım Adım Çözüm
Anahtar Kavram
Record-Triggered Flow Trigger Types: Fast Field Updates (Before-Save) vs. Actions and Related Records (After-Save)
Tahmini Süre:1m 15s