An automation specialist is designing an autolaunched flow in Flow Builder to update a custom field across a collection of renewal Contract records. The flow receives a collection variable containing multiple Contract records, needs to populate the Renewal_Manager__c field on each record in memory, and then commit all updates to the database. Which sequence of Flow elements and logic demonstrates the correct bulkified design pattern?
- Iterate over the Contract collection using a Loop element; inside the loop, use an Assignment element to update the field on the loop item variable, use a second Assignment element to add the loop item to a new collection variable, and place an Update Records element after the loop using the new collection variable.Cevap
- BIterate over the Contract collection using a Loop element; inside the loop, use an Assignment element to set the field on the loop item variable, and place an Update Records element immediately after the Assignment element inside the loop.
- CIterate over the Contract collection using a Loop element; inside the loop, use a Get Records element to fetch each Contract individually before applying an Assignment element, followed by an Update Records element placed outside the loop.
- DConfigure a Roll-Up Summary field on the parent Account object to calculate and assign the Renewal_Manager__c value across all child Contract records automatically, omitting Loop and Assignment elements.
Cevap
Iterate over the Contract collection using a Loop element, assign updated values to individual items and push them to a output collection variable inside the loop, and execute a single Update Records element outside the loop.
The correct pattern for bulk record modifications in Flow Builder involves using a Loop element to iterate through records, Assignment elements inside the loop to modify field values and append each record to a output collection variable, and a single Update Records element outside the loop to execute a bulk update.
Adım Adım Çözüm
Anahtar Kavram
Bulkification in Flow Builder using collections, loops, and assignment elements