Skip to content
Skip to content
SalesforceFox

SalesforceFox

Easy way Learning & Exploring Salesforce !

  • Home
  • All Blogs
  • How To
  • Tips & Tricks
  • Salesforce Quiz
  • Resources
  • About

How to use Repeater component in Screen Flow

Piyush LakhaniJune 18, 2024March 29, 2025
Table of Contents
[Open][Close]
  • Introduction
  • Creating Screen Flow using Repeater Component with Use Case
  • Conclusion/Consideration:

Introduction

By leveraging this new Repeater component in Screen flow, you are enabling users to enter multiple instances of data at runtime in the same screen, which was a big hurdle before the introduction of Repeater component. Repeater component will store all the entered fields via screen flow into a Collection and this collection can be used in your flow for further processing or to create records.

Creating Screen Flow using Repeater Component with Use Case

Let’s Explore this with a real-time scenario: Create multiple contacts from screen flow on the account record page. 

Step 1 :

From Set up, go to Flow> New Flow > Start From Scratch and then select Screen Flow and click on Create for new flow builder. To create contacts via screen flow, first add a screen component & as shown below  add the Repeater component to the screen and input fields of Contact into repeater component.

Repeater Comp

Step 2:

The flow will have a default Collection created for all fields entered through the repeater component Screen, in our case multiple contact details (First Name & Last Name) that you will enter, would be stored in the default Collection called {repeater_contacts.AllItems }, whereas repeater_contacts is the API Name of Repeater Component

Step 3:  

This repeater collection can be used for any further processing in the flow. In our case, we will use the Loop element to go over this Collection and do the assignment of each item of the Collections to create a contact record.

screen flow loop

Step 4:  

Now, we need two new variables here, first is the temporary contact record variable ( singleContactRec ) in which field values from each item of repeater collection are assigned and Second is Contact Record Collection ( contactRecordCollection ) which will store all contacts from the first variable one by one.

Assignment Comp

In the above image, you may have noticed that we have assigned ‘recordId’  to AccountId of the contact variable. This ‘recordId’  is a text variable you need to create in your flow because we will be launching this flow from the account record page action & this default variable recordId will have a value from the id of the record page from where the flow is being launched.

Step 5:

After the assignment, contactRecordCollection should have all contacts to insert, so now use Create Record Element in flow & make sure to select the option of multiple records to create & select this collection.

insert record collection

Voila! You successfully created the screen flow which will create multiple contacts from an account. Create a lightning action which calls this flow and add it into the account record page. 

Take a look below at How the entire flow will look,

Screen Flow

Screen Flow in Action:

Image Not Found

Conclusion/Consideration:

This component is very useful whenever you have scenario when there is a need of entering multiple data or forms in Screen Flow. Before you start using it, Take into account the Consideration provided on Salesforce Help

Share this Now :

Related Posts:

  • Display Apex-Defined Collection Data Directly into Screen Flow DataTable
    Display Apex-Defined Collection Data directly into…
  • How to Clone a User in Salesforce : Deploy screen flow solution to your sandbox with few clicks by SalesforceFox.com
    How to Clone a User in Salesforce : Deploy screen…
  • How To Use Flow Approval Process instead of Classic Approval Process
    How to use Flow Approval Process In Salesforce ?
  • Add Custom Toast Messages In Screen Flows In Salesforce
    Make Salesforce Screen flows more Interactive with…
Flow, How To

Post navigation

Previous: What is the difference between @api and @track decorators in LWC.
Next: How to use Cron Expressions in Salesforce – Discover a tool to build Cron for salesforce

2 thoughts on “How to use Repeater component in Screen Flow”

  1. YD says:
    September 9, 2024 at 7:54 PM

    Great article! I really appreciate the clear and detailed insights you’ve provided on this topic. It’s always refreshing to read content that breaks things down so well, making it easy for readers to grasp even complex ideas. I also found the practical tips you’ve shared to be very helpful. Looking forward to more informative posts like this! Keep up the good work!

    Reply
    1. Piyush Lakhani says:
      September 10, 2024 at 12:50 AM

      Thank you very much, It really means a lot to me.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get Weekly Salesforce Quiz

Categories

  • Admin (8)
  • Apex (6)
  • Automation (7)
  • Best Practices (6)
  • Flow (5)
  • LWC (4)
  • Security (1)
  • SOQL (1)
  • Trigger (1)
  • Uncategorized (1)

Recent Posts

  • User Access Policy in Salesforce : The Smartest way to Automate User Management Jobs
  • Display Apex-Defined Collection Data directly into Screen Flow Data Table
  • How to Secure Your Salesforce Org: First Steps Against Cyber Attacks and Social Engineering
  • Make Salesforce Screen flows more Interactive with Toast Messages
  • How to Zip & Unzip files Natively in Salesforce: Use This Ready-to-Use ZIP Utility

Tags

Admin Apex Aura Component Automation Best Practices Development Email Alerts Flow Flow Approval Process How To Lightning Experience LWC Reports Scheduled Jobs Security SOQL Tips Trigger User Management

Archives

  • November 2025 (1)
  • October 2025 (1)
  • August 2025 (1)
  • July 2025 (1)
  • June 2025 (2)
  • May 2025 (1)
  • April 2025 (2)
  • March 2025 (2)
  • January 2025 (2)
  • December 2024 (1)
  • October 2024 (1)
  • September 2024 (1)
  • August 2024 (1)
  • June 2024 (1)
  • April 2024 (1)
  • March 2024 (1)
  • October 2023 (1)
  • Linkedin
  • Youtube
  • Privacy Policy
  • Terms of Use
  • Contact
Theme: BlockWP by Candid Themes.
© 2023-2026 | SalesforceFox.com