Skip to main content

Looping Through Data from Webhook Actions

Loop over the array a Make an HTTP(S) request action returns and run the same actions for each item.

Written by Peter Novosel

A Looping action can take the array that a Make an HTTP(S) request action returns and run the same actions once per item. Inside the loop, Current item holds each value or object.

Use it to pull a list from another system's API and create or update a record for each entry.

Example: a Risk Register table in an Enterprise Risk Management solution. Every morning, an automation calls a vulnerability feed with Make an HTTP(S) request. The feed returns a list of new issues. The loop creates one risk per issue, with its title and score.

Plan Availability

All plan types.

Permissions

Administrators, in any solution, and Solution Managers, in the solutions they manage, create and manage automations.

Platform

Web

Related Reading


My loop over webhook data did not run as expected: check these four things, in order

You need the Administrator role, or the Solution Manager role for the solution, to open History and change the automation.

  1. The automation did not run. History shows no run. See Fix an automation that did not run.

  2. Nothing after the loop. No action can follow a Looping group. Put every later step inside it. See Automation Action: Looping.

  3. The input list. Select List must be the Make an HTTP(S) request step, and Webhook response the array. See Automation Action: Send Webhook Request.

  4. Current item. Plain values give the value. Objects give a list of keys. See Understanding "Current Item" in Looping Actions.

Still stuck: select the chat button in the lower-right corner of SmartSuite, then Ask a question. Include the automation link, the time of the run and the record link.


Which data can the loop read?

There is no fixed limit on the array's size, but a very large array slows the run.


How do I set it up?

  1. Add Make an HTTP(S) request and describe its response under Response Content, including the array.

  2. Under Then do this, add Looping from the Advanced Logic group. It must be the last action.

  3. In Select List, select the Make an HTTP(S) request step.

  4. In Webhook response, pick the array, such as Response Data.issues. If the whole response is an array, pick Response Data.

  5. Inside the Looping group, add the actions to repeat.

The Looping group with Select List set to a Make an HTTP(S) request step and Webhook response set to Response Data.issues.

The Looping group with Select List set to a Make an HTTP(S) request step and Webhook response set to Response Data.issues.


What does Current item hold?

  • Plain values: for ["apple", "banana"], Current item is apple in the first round and banana in the second. There is no list of keys.

  • Objects: for [{"id": "123", "status": "pending"}], Current item > id gives 123 and Current item > status gives pending.

For the feed, Create a record sets Title to Current item > title and the score field to Current item > score.


Example: a scheduled feed with a sign-in step

  1. Trigger: At a scheduled time, every day.

  2. Action 1: Make an HTTP(S) request to get a sign-in token.

  3. Action 2: Make an HTTP(S) request for the data, with the token in a header.

  4. Action 3: Looping over the returned array. Inside, Create a record in Risk Register for each item.


Example: update each found record

  1. Trigger: At a scheduled time.

  2. Action 1: Find records with Status Equal to Identified.

  3. Action 2: Looping over the found records.

  4. Inside the loop: Find records for the owner in another table, then Update records on Current item.


Frequently asked questions

Can I loop over what a webhook trigger receives?

Yes. Pick the When webhook is received trigger in Select List instead. See Looping Through Data from Webhook Triggers.

Can I loop over a list nested inside another list?

No. Arrays inside arrays are not supported. The array must be at the root or under one key.

Can I call another API for each item?

Yes. Put a Make an HTTP(S) request action inside the loop and use Current item values in its URL or body.

Can I add an action after the loop?

No. Nothing can follow a Looping group. Put every later step inside it.

Need more help? Ask the SmartSuite Community, where builders, administrators and the SmartSuite team answer questions about building on SmartSuite. For your account, billing or data, select the chat button in the lower-right corner of SmartSuite to reach support.

Last verified 1 Nov 2026.

Did this answer your question?