Uses a for-loop to iterate through each record of the collection variable. When the workflow execution reaches this activity, it will loop through each record of collection and will execute the activity defined in iteration. once loop is completed, next set of activities will be executed.

  • Group: Logic

  • Nature: Non-Blocking

This activity has two outcomes.

  • Done: Once the loop is completed, the control will go to “Done” outcome.
  • Iterate: Using Iterate, user can loop thought the collection.

Example: 

You can use the Loop activity in a workflow to send follow-up emails to a list of contacts. First, use the Get Records element to retrieve the contacts who attended an event. Then, the Loop activity will iterate through each contact in the collection variable, and for each one, an email will be sent. Once all emails are sent, the flow will exit the loop and proceed to the next step.

Properties and activity information

Properties determines the initial behavior of the activity.

FieldDescription

Properties

Collection Variable Name

Enter the variable name where the collection data is stored, such as the data retrieved using the Get Records activity.

Current item Variable Name

Enter the variable name that stores the current record being processed in the loop.

Common
NameEnter the technical name of the activity.
Display NameThis field auto-populates but can be changed if needed.
DescriptionProvide a description that is relevant to the activity.