How To Use Repeater Component in Screen Flow (Video 5:23)
In its Spring '24 release, Salesforce introduced a new "Repeater" component in Screen Flow that allows users to add multiple records dynamically. For example, users can add multiple contacts, cases or opportunities for an Account, making the whole process easier and faster.
Here is an example of what the repeater component looks like. Users see a form with an "Add" button to add more records. They can also remove any record they've added. You can then insert these records in bulk in the database.
As of Spring '24 release, the input types that you can add inside the repeater component are Text, Date, and Picklist.
How to Build It
Add a Repeater component to your screen and place the input fields you need inside it.
After the screen, add a Loop that goes through the repeater's items.
Inside the loop, use an Assignment to map each item's values to a record variable, then add that record to a record collection.
After the loop, use a single Create Records element to insert the whole collection in bulk.
Debug the flow, add a few rows, and confirm all the records are created.