LOOP element in Salesforce Flow Builder

Hi folks, in this post I’m going to discuss about Loop element in Salesforce flows.

Before we start with the topic, if you are new to Salesforce and want to know more about Salesforce flows and flow builders you can checkout What is Salesforce Flow Builder and basic Building Blocks of Flow Builder

In this example we are going to create a Screen flow. Create a “Get Record” element to fetch all the Account object records present in your Salesforce org.

Select the Loop element and provide details such as label, description. Add collection variable to your flow element.

Collection variable stores all the records on which you are going to take action using loop.

As you know that the get record element is similar to collection variable hence we will select the get record element while creating the loop element.

The loop will iterate all the Account object records which we are fetching from the Salesforce org.

We can also set the order in which the loop should iterate over the collection items.

To understand how loops are implemented we are going to add a screen element with display component to our flow.

As the records will be iterated, Account name of each Account record will be displayed on the Screen element.

BUSINESS SCENARIO : Add a Count field on the screen element to increase the count whenever the loop iterates the Account object’s record.

For more details about Loop element and solution of the business scenario checkout the video

Spread the love

Related Posts

Leave a Reply

Your email address will not be published.


Recent Posts