A Salesforce Administrator is configuring an autolaunched flow to update inactive Contact records. To ensure the flow is properly bulkified and avoids hitting DML governor limits, place the following Flow Builder steps in the correct logical execution sequence from first to last.
- 1Get Records element to query all matching inactive Contact records into a collection variable.
- 2Loop element to iterate over each Contact record in the retrieved collection.
- 3Assignment element inside the loop to update field values on the current Contact item variable.
- 4Assignment element inside the loop to add the updated Contact item variable to a separate update collection variable.
- 5Update Records element placed after the loop to update the secondary collection variable in the database.
Answer
The correct logical sequence for bulkified record processing is: 1) Get Records to query the initial collection, 2) Loop to iterate through records, 3) Assignment to update field values on the current record variable, 4) Assignment to add the modified record to an update collection variable, and 5) Update Records outside the loop to commit all changes in a single operation.
The standard design pattern for processing multiple records in Salesforce Flow Builder requires fetching records first (Get Records), looping through them (Loop), updating field values and accumulating them into a new collection variable using Assignment elements inside the loop, and finally issuing a single update request (Update Records) outside the loop.
Step-by-Step Solution
Key Concept
Bulkification Sequence in Flow Builder