When bulkifying a flow to process multiple records, an administrator uses a Loop element to iterate over a record collection. Which Flow Builder element should be placed inside the loop to modify field values on the current record item in memory prior to updating the database outside the loop?
- Assignment elementAnswer
- BUpdate Records element
- CRoll-Up Summary element
- DRecord Type Picklist element
Answer
The Assignment element is the correct choice to update field values on record variables in memory inside a loop.
The Assignment element sets or updates values in flow variables and record fields strictly within transaction memory. This allows administrators to prepare updated record values inside a loop, collect them into a collection variable, and perform a single Update Records operation after the loop finishes.
Step-by-Step Solution
Key Concept
Flow Bulkification and Assignment Elements