An administrator is designing an autolaunched flow that evaluates and modifies multiple active Contract records associated with an Account. To ensure the flow executes efficiently without exceeding governor limits when manipulating collection data, which two design practices should the administrator use? (Choose two.)
- Use an Assignment element inside the Loop to assign modified field values to a record variable and append it to a new collection variable.Answer
- Place an Update Records element after the Loop finishes to commit changes from the record collection variable in a single transaction.Answer
- CPlace an Update Records element inside the Loop element immediately following each Contract record's field assignment.
- DAdd a Get Records element inside the Loop to requery each Contract's parent Account details dynamically during each iteration.
Answer
The administrator should use an Assignment element inside the Loop to stage updated records into a new collection variable, and place an Update Records element after the Loop finishes to commit all updates in a single bulkified transaction.
Proper flow bulkification requires manipulating records in memory using Assignment elements and collection variables during loop iterations, followed by a single Update Records data element after the loop completes to persist the changes in a single DML statement.
Step-by-Step Solution
Key Concept
Bulkified Flow Data Manipulation and Collection Handling