A Salesforce Administrator is designing an autolaunched flow to update custom Software License records associated with an Account. To process these records efficiently and adhere to Salesforce governor limits, which two design practices should the administrator implement in Flow Builder?
- Use an Assignment element inside the loop to add modified records to a Record Collection variable.Answer
- BPlace an Update Records element inside the loop to modify each Software License record immediately during iteration.
- Position the Update Records element outside the loop to update the entire Record Collection in a single transaction.Answer
- DConfigure a Roll-Up Summary field on the Account object over the lookup relationship to calculate counts before entering the loop.
Answer
The administrator should use an Assignment element inside the loop to populate a Record Collection variable, and place the Update Records element outside the loop to update all records in a single bulk operation.
To adhere to bulkification design principles, record changes must be staged in a collection variable using an Assignment element during loop iterations, followed by a single Update Records element placed outside the loop.
Step-by-Step Solution
Key Concept
Bulkification in Flow Builder using Collection Variables and Loop positioning