Question

Difficulty: MediumFlow Types and Triggers

An administrator for a luxury hotel chain is building an automated solution for a custom object named Hotel_Reservation__c. The business process requires:

1. Automatically calculating and updating a discounted room rate field on the triggering reservation record before the record is committed to the database upon creation or update.
2. Automatically evaluating all reservation records on a weekly recurring schedule every Monday at 2:00 AM to identify check-outs from the prior week and create follow-up survey records for related contacts.

Which two flow types and trigger configurations should the administrator select to fulfill these requirements? (Choose two.)

  1. A Record-Triggered Flow configured for Fast Field Updates (before-save) on the Hotel_Reservation__c object to update the room rate field.Answer
  2. A Schedule-Triggered Flow configured to run weekly on a specified date and time to process qualifying Hotel_Reservation__c records in batches.Answer
  3. C
    A Record-Triggered Flow configured for Actions and Related Records (after-save) on Hotel_Reservation__c to set the room rate field on the triggering record.
  4. D
    An Autolaunched Flow containing Get Records and Create Records data elements placed inside a Loop element to iterate across weekly reservation records.

Answer

A Record-Triggered Flow configured for Fast Field Updates (before-save) on the Hotel_Reservation__c object and a Schedule-Triggered Flow configured to run weekly on a specified date and time.
The solution requires two distinct trigger types: (1) A Record-Triggered Flow configured for 'Fast Field Updates' (before-save) handles same-record field calculations before the data is committed to the database, ensuring maximum performance. (2) A 'Schedule-Triggered Flow' runs automatically on a predefined weekly schedule (e.g., Monday at 2:00 AM) to query past reservations and create related survey records without requiring code.

Step-by-Step Solution

1
Analyze the requirement for updating fields on the same record prior to database commit.
Identify that updating fields on the triggering record before commit requires a Record-Triggered Flow configured for Fast Field Updates (before-save).
Fast Field Updates run before the record is saved to the database, eliminating the need for explicit Update Records elements and avoiding additional trigger recursion.
2
Analyze the requirement for weekly recurring batch processing and creation of related survey records.
Identify that recurring time-based batch evaluation requires a Schedule-Triggered Flow.
Schedule-Triggered Flows execute at a specified start time and recurrence pattern, querying qualifying records and executing batch actions seamlessly.
3
Combine the identified flow configurations to fulfill both business requirements.
Select the Fast Field Updates Record-Triggered Flow and the Schedule-Triggered Flow configurations.
Each requirement maps directly to the dedicated Flow Builder trigger pattern designed for that execution context.

Key Concept

Flow Trigger Types: Fast Field Updates vs. Actions and Related Records, and Schedule-Triggered automation.
Rate this question