Soru

Zorluk: KolayFlow Types and Triggers

An administrator needs to automatically update the custom field 'Contract_Status__c' on a custom object record 'Vendor_Contract__c' when it is created, prior to the record being saved to the database. Which flow trigger option should the administrator choose for optimal execution performance?

  1. A Record-Triggered Flow configured for Fast Field Updates (Before-Save)Cevap
  2. B
    A Record-Triggered Flow configured for Actions and Related Records (After-Save)
  3. C
    A Schedule-Triggered Flow scheduled to run every night
  4. D
    A Platform Event-Triggered Flow triggered upon contract creation

Cevap

A Record-Triggered Flow configured for Fast Field Updates (Before-Save) is the correct choice because it updates fields on the triggering record before database commit without triggering additional DML operations.
Fast Field Updates (Before-Save) run directly before the record is saved to the database, making them significantly faster and highly efficient for updating fields on the record that launched the flow.

Adım Adım Çözüm

1
Analyze the business requirement
The requirement is to update a field on the triggering record ('Vendor_Contract__c') at the time of creation before it is saved to the database.
Understanding whether the update targets the same record or related records determines the trigger timing.
2
Evaluate flow trigger types
Fast Field Updates (Before-Save) run immediately before record insertion/update and allow modifying the triggering record directly without triggering extra database write cycles.
Salesforce optimal design principles specify Before-Save record-triggered flows for same-record updates.

Anahtar Kavram

Selecting optimal Record-Triggered Flow execution timing (Before-Save vs After-Save)
Bu soruyu puanla