Soru

Zorluk: OrtaFlow Types and Triggers

An organization tracks charitable funding requests using a custom object named Grant_Application__c. A business requirement states that whenever a Grant_Application__c record is created or edited with a Requested_Amount__c exceeding $100,000, the Review_Tier__c picklist field on that same record must automatically be set to 'Executive Review' before the record is saved to the database. No external callouts, notifications, or updates to related records are required. Which flow configuration should the administrator choose to fulfill this requirement with optimal performance?

  1. A
    Record-Triggered Flow configured for Actions and Related Records with an Update Records element
  2. Record-Triggered Flow configured for Fast Field Updates running before the record is savedCevap
  3. C
    Schedule-Triggered Flow configured to evaluate and update modified Grant Application records in a nightly batch
  4. D
    Autolaunched Flow with an asynchronous trigger path to bypass database locks

Cevap

Record-Triggered Flow configured for Fast Field Updates running before the record is saved
A Record-Triggered Flow optimized for Fast Field Updates runs before the record is saved to the database. It updates field values directly on the $Record global variable in memory prior to the database commit, resulting in maximum performance and avoiding extra DML operations and recursion.

Adım Adım Çözüm

1
Analyze the automation trigger event and scope of updates
The requirement triggers on record creation or edit of a Grant_Application__c record and modifies only fields on the triggering record itself.
Determining whether the update targets the triggering record or related objects dictates the required trigger optimization type.
2
Evaluate execution timing requirements
The field update must occur before the record is saved to the database, without requiring external integrations, email alerts, or related object modifications.
Updates that must happen prior to database commit without side effects should leverage before-save trigger execution.
3
Select the appropriate flow trigger optimization
A Record-Triggered Flow configured for 'Fast Field Updates' (before-save) is selected.
Fast Field Updates run up to 10 times faster than after-save automations because they alter record field values in memory before database commit, avoiding additional DML and recursion.

Anahtar Kavram

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