Repeater Component (Multiple Entry in Single Screen) in Screen Flow #inSalesforce

Repeater Component (Multiple Entry in Single Screen) in Screen Flow #inSalesforce


This is to repeat a set of fields in a single screen element os multiple records can be added from 1 place (no need to go away from the screen)


Scenario: Create multiple Contacts


Create a screen flow 


Create recordId (text type) (Id of Account Record), input selected

Create variable contactCollector (record type, Contact) - Allow Multiple Selected

Create a Contact record variable (record type, Contact)


Screen Element:

Add screen element

Search for Repeater and drag drop to screen

Add First and Last Name field


Loop Element:

Loop through output (Repeater.AllItems)


Assignment Element:

Assign value to Contact record variable

Contact.FirstName equals Current Item Loop.FirstName

Contact.LastName equals Current Item Loop.LastName

Contact.AccountId equals recordId

contactCollector Add Contact


Create Element: (multiple)

contactCollector


Test it by adding this as an action from the Account Page















                                    Visual: https://www.youtube.com/watch?v=Z90659nalPs

Comments