A company requires an automated batch process to calculate the total contract value of all active child contracts linked to an account and update the parent account record. Order the Flow elements from first to last to accomplish this while maintaining bulkification best practices.
- 1Get Records element to query all active Contract records related to the Account.
- 2Loop element to iterate over the collection of retrieved Contract records.
- 3Assignment element to add the current Contract's amount to a running total variable.
- 4Update Records element to update the parent Account with the final calculated total.
Answer
The correct sequence is: Get Records element to query all active Contract records related to the Account -> Loop element to iterate over the collection of retrieved Contract records -> Assignment element to add the current Contract's amount to a running total variable -> Update Records element to update the parent Account with the final calculated total.
The proper sequence for bulkified record processing in Flow Builder is: retrieve records (Get Records), iterate through the records (Loop), perform in-memory variable calculations (Assignment inside the loop), and commit updates to the database once iteration finishes (Update Records).
Step-by-Step Solution
Key Concept
Flow Builder Bulkification and Data Manipulation Sequencing