A System Administrator is configuring a Record-Triggered Flow on the Case object that executes when a Case status is updated to 'Escalated'. The requirement states that for every escalated case, all associated open Work Order records must have their Priority set to 'Urgent' and an escalation timestamp recorded. To ensure the flow operates efficiently without exceeding governor limits during bulk updates, which TWO flow design elements and logic patterns must the administrator use? (Select 2 answers)
- Use an Assignment element inside the loop to append each modified Work Order record to a Record Collection Variable, followed by a single Update Records element placed after the loop path.Cevap
- Utilize a single Get Records element prior to the loop element to retrieve the collection of related Work Order records matching the criteria.Cevap
- CInsert an Update Records element directly inside the Loop element to immediately commit changes to each Work Order record during iteration.
- DDefine a Roll-Up Summary field on the Case object to sum the open Work Order records using their standard lookup relationship.
Cevap
The administrator must use an Assignment element inside the loop to accumulate modified records into a collection variable and perform a single Update Records element after the loop, as well as execute a single Get Records element prior to entering the loop.
To adhere to Salesforce governor limits and best practices for flow bulkification, data retrieval (Get Records) must occur before entering a loop, and data modification (Update Records) must occur once after the loop completes using a collection variable. Accumulating record updates into a record collection using an Assignment element inside the loop allows a single DML operation to update all child records simultaneously.
Adım Adım Çözüm
Anahtar Kavram
Flow Bulkification and Governor Limits in Flow Builder