Soru

Zorluk: OrtaFlow Types and Triggers

An organization manages customer broadband activations using a custom object named Service_Activation__c. When a new activation record is created or updated, the system must automatically calculate and set the Provisioning_Tier__c and Expected_Completion_Date__c fields on that same record before it is committed to the database. No notifications, email alerts, or updates to parent account records are required. Which flow trigger configuration should the administrator select to fulfill this requirement with maximum performance?

  1. A Record-Triggered Flow configured for Fast Field Updates (before the record is saved)Cevap
  2. B
    A Record-Triggered Flow configured for Actions and Related Records (after the record is saved)
  3. C
    An Autolaunched Flow triggered immediately after standard validation rules and custom apex triggers execute
  4. D
    A Schedule-Triggered Flow configured to query and update all modified activation records in batches throughout the day

Cevap

A Record-Triggered Flow configured for Fast Field Updates (before the record is saved)
Configuring a Record-Triggered Flow for Fast Field Updates runs before the record is written to the database. It allows direct assignment to fields on the triggering record ($Record) without issuing DML statements, providing substantially faster execution times and preventing redundant save procedures.

Adım Adım Çözüm

1
Analyze the automation requirements for the triggering record
Identified that the business process only requires updating fields directly on the triggering Service_Activation__c record during create/edit events, with no external actions or related record modifications.
Determining whether actions affect only the triggering record or external/related entities dictates whether a before-save or after-save flow trigger is required.
2
Select the optimal flow trigger timing based on Salesforce performance best practices
Choose Fast Field Updates (before-save record-triggered flow).
Before-save flows update fields on $Record prior to the database write, executing significantly faster and avoiding recursive save cycles, additional triggers, and extra DML governor limit consumption.

Anahtar Kavram

Record-Triggered Flow trigger optimization (Fast Field Updates vs. Actions and Related Records)
Tahmini Süre:1m 0s
Bu soruyu puanla