Platform
Salesforce Flow Repeater: collect and save multiple rows
Design multi-row screen input with Flow Repeater, then map values into record collections and test edits, removals and validation.
A screen can collect several rows without saving a record for each click. Flow Repeater handles repeated input; your flow still owns the persistence logic.
Salesforce’s Repeater exercise walks through creating and updating records from repeated screen components. Use the component when its supported inputs and behavior fit the interaction, and check the options available in your org’s current Flow Builder.
Define what one row represents
Decide whether a row is a new record, an edit to an existing record or a request awaiting review. Keep that meaning consistent across the screen and the later save.
For an existing record, preserve its identity separately from editable values. Don’t identify a row by its screen position: adding or removing another row can change positions. Validate that the user is authorized to update the referenced record before persistence.
Keep per-row fields focused. A large repeated section is difficult to scan on a phone and can make validation errors hard to locate. Test the actual input sequence with the people who will use it.
Build a collection before performing DML
After the screen, iterate over the relevant Repeater output, map each row to a record variable and add it to a collection. Perform the appropriate Create or Update operation on the collection where the flow design permits.
Don’t place a database write inside every iteration merely because the screen contains repeated rows. Also decide how removed rows should behave. Removing an unsaved row and deleting an existing database record are different operations.
When the component supports prepopulated or edited rows in your release, verify the output collections and their meaning in Flow Builder. Avoid copying an older tutorial’s variable names without checking the current component contract.
Make errors actionable
A required field on one row should lead the user back to that row with understandable guidance. Server-side validation can still reject a record after the screen accepts its input, so build an appropriate fault path.
Decide whether all rows must save together. If the process can partially complete, show which rows succeeded and preserve the failed input for correction. A generic success screen must not conceal rejected records.
Test no rows, one row, several rows, removal, an edited existing row and a validation failure. Check keyboard use and the mobile layout as part of acceptance.
Use a custom component when the required interaction exceeds the standard component’s supported behavior, not simply because a repeated screen looks complex. The decision should follow the input and recovery requirements you can demonstrate.