Automation Answers

How Do I Loop Through Multiple Items in a Zap?

Use Looping by Zapier to run steps once per item from line items, a text list, or a number range, then end the loop and use the aggregated results.

By Automation Ace Editorial Team · Reviewed for technical accuracy by Troy Tessalone · Published · Updated

Short answer

How Do I Loop Through Multiple Items in a Zap?

Add a Looping by Zapier step after your trigger, choose Create Loop From Line Items (or From Text or From Numbers), and map each list field you need under Values to Loop. Every step after the loop runs once per item. Use the loop's current-item fields inside it, and end the loop when later steps should run only once. Build it in Zapier and test with a small list first.

Pick the loop type

Your data looks likeUseExample
Line items (Name 1, Name 2, Name 3…)Create Loop From Line ItemsOrder products, invoice lines, form repeater rows
Text with a separatorCreate Loop From Text"red, green, blue" or one email per line
A count or rangeCreate Loop From NumbersCreate 12 monthly records, page 1 to 10 of an API

Step by step

  1. Add Looping by Zapier right after the trigger or after any step that produces the list.
  2. Choose the loop type, then add one row per field under Values to Loop (for example sku, qty, price) and map the matching line-item field. Zapier uses every numbered value automatically.
  3. Add the steps that should run per item, mapping the Loop Values fields, not the original line-item fields.
  4. End the loop if later steps should run once, such as a summary email or a status update.
  5. Test with two or three items and check Zap History: each iteration shows as its own run of the inner steps.

Example

A Shopify order with three products triggers the Zap. The loop runs a Google Sheets "Create Row" step three times, once per SKU, then a single Slack message after the loop posts "3 rows added for order 1042". Full walkthrough: looping and aggregating line items in Zapier.

When not to loop

  • The destination accepts line items directly. Many actions (invoices, sheets "create multiple rows", some CRMs) take the whole array in one step and one task. See line items and arrays in Zaps.
  • You only need to transform the list. A Formatter or Code step can join, split, or total values without looping.
  • The list is large or needs strict order. Use a queue pattern such as sequential processing with Zapier Tables.

Caveats

Each action inside the loop uses a task per iteration, so loops can multiply task usage quickly; see why Zapier uses so many tasks. Loops cannot be nested in one Zap, iteration counts are capped, and mismatched line-item arrays (three names but two prices) shift values onto the wrong item. Check the data first; see line items not mapping correctly.

FAQ

Can Zapier loop through a list without line items?

Yes. Looping by Zapier can create a loop from text, such as a comma-separated list, or from a range of numbers, in addition to line items.

Do steps inside a Zapier loop use tasks?

Yes. Each action step inside the loop uses a task every time it runs, so a 3-step loop over 50 items can use about 150 tasks. Filter items out before the loop when you can.

Can I nest loops in Zapier?

Not inside one Zap. For a loop inside a loop, send each outer item to a second Zap with a webhook or sub-Zap and loop there, or flatten the data in a Code step first.

How many items can Looping by Zapier process?

Zapier caps the number of iterations per loop; the documented limit has been 500. Larger lists should be split into batches or processed with a queue.