Loading
Help

Loop your Zap actions

Last updated:

You can use Looping by Zapier to run an action or set of actions more than once. Any action that follows a looping step will run once for each set of values input into a Create Loop step.

A graph demonstrating how Looping by Zapier takes multiple values and runs them through action steps multiple times

Example

You have a list of email addresses to add to your contact list, but each Add Contact action will only add 1 contact. Instead of adding multiple Add Contact actions for each contact, you can use a Looping by Zapier step followed by an Add Contact action. This will loop the Zap through the Add Contact step once for each contact in your list. This way, you only have to set up the Add Contact step once.

Note
  • Looping by Zapier allows you to create an intentional loop, unlike accidental Zap loops.
  • Looping by Zapier is currently in beta.
  • Looping by Zapier requires multi-step Zaps.

About Looping by Zapier's Integration

What kind of authentication does Looping by Zapier use?

Looping by Zapier does not require authentication.

Do I need a paid Zapier account to use Looping by Zapier with Zapier?

You need a paid Zapier plan to use Looping by Zapier.

Do I need special account permissions in Zapier to use Looping by Zapier?

No, you don't need any special account permissions to use Looping by Zapier.

Create a loop from text

To create a loop from single values, or single values and text:

  • Click the Action step, or click the plus + icon to add a step to your Zap.
  • Search for and select Looping by Zapier.
  • Click the Action Event dropdown menu and select Create Loop From Text.
  • Click Continue.
  • In the Values to Loop section, add your values to loop:
    • In the field on the left, enter the name of the value.
    • In the field on the right, click the field and select the values you want to loop through, separated by a text delimiter.
    • In the Text Delimiter field, enter the symbol or text that separates each value in your list. If nothing is entered, the Zap will use a comma by default. You can use special characters as delimiters.
  • Click Continue.
  • Click Test & review. If the looping step is successful, you’ll see your field name followed by the first loop value for that field. A preview of other loop values is also shown.
    Successful test of the Create Loop From Text action
Example

In this example, use the emails value in the next steps of your Zap.

Note
  • By default, commas are used as the text delimiter.
  • When you test this action, the Zap will only create the first loop. It will not create any other loops during the test.
  • Don’t use the preview_loop_values field from the loop test in your Zap. It is for preview purposes only and doesn’t appear in actual Zap runs.

Create a loop from line items

To create a loop from line items:

  • Click the Action step, or click the plus + icon to add a step to your Zap.
  • Search for and select Looping by Zapier.
  • Click the Action Event dropdown menu and select Create Loop From Line Items.
  • Click Continue.
  • In the Values to Loop section, add your values to loop:
    • In the field on the left, enter the name of the value.
    • In the field on the right, click the field and select a field with the line item values you want to loop through.
  • Click Continue.
  • Click Test & review. If the looping step is successful, you’ll see your field name followed by the first loop value for that field. A preview of other loop values is also shown.
Note

You can add additional line item values to run multiple line items in the same loop. For example, if you need to add line items for price, quantity, and description to an invoice, you can add each line item value in the Create Loop step.

Create a loop from numbers

To create a specific number of loop iterations from a range of numeric values:

  • Click the Action step, or click the plus + icon to add a step to your Zap.
  • Search for and select Looping by Zapier.
  • Click the Action Event dropdown menu and select Create Loop From Numbers.
  • Click Continue.
  • In the Loop Iteration Counter Start field, enter the numeric value that you want your first loop iteration to start on.
  • In the Loop Iteration Counter End field, enter the numeric value for the loop iteration you want to end with.
  • Click Continue.
  • Click Test & review. If the looping step is successful, you’ll see the first number in your count. A preview of other loop iteration numbers that would be created in a live Zap is also shown.

Frequently asked questions

Why do I only see one loop when I test my Zap?

When you test a loop action, the Zap will only create the first loop. It will not create any other loops during the test.

When the Zap runs live, all loops will run and appear in your Zap History.

How do loops appear in Zap History?

Each loop iteration will result in a separate Zap run.

How many tasks do loops use?

  • An action that runs before the loop will appear in each Zap run but only use 1 task.
  • The looping step uses 1 task.
  • Each action step after the loop will use 1 task for each loop that runs. For example, if your loop runs 500 times, an action step after the looping step will use 500 tasks when the Zap runs.

How do I stop a loop from running in subsequent action steps?

All actions after the looping step will run for each iteration of the loop. If you don’t want an action step to loop:

  • After the last step you want to loop, add a filter step.
  • Set the filter to only continue if the value loop_iteration_is_last matches the (Boolean) Is True condition.

The filter will run in every loop but will only pass in the last loop. Any actions step after the filter will run once in the last loop and use only 1 task.

Note

If you want an action step to only run once, add it before the looping step, if possible. This will use less tasks and the filter step won’t be needed.

What is the maximum number of loops I can use?

You can set your looping step to run up to 500 times. If you want your Zap to loop more than 500 times, contact Zapier support to be added to the feature request.

Can I create nested loops?

Nested loops are not supported. You won’t be able to turn on a Zap with more than one Looping by Zapier Step.

If you need additional help with setting up a Looping step in your Zap, contact Zapier support.


Need More Help?

Contact Support

Tell us about your problem, and we’ll find you a solution or you can email support.
Get Help

Hire an Expert

We have a directory of professionals across the globe who are ready to help.
Find a Zapier Expert

Zapier Community

Connect with other Zapier users and industry professionals to get help crafting the perfect workflow.
Check out the community

Zapier University

Video courses designed to help you become a better Zapier user, whether you’re a beginner or more experienced.
View courses