Skip to main content

Looping Through Data from Webhook Triggers

Loop over an array a webhook trigger receives and run the same actions per item, with Current item for each value.

Written by Peter Novosel

A Looping action can take an array that a webhook trigger receives and run the same actions once per item. Inside the loop, Current item holds each item's value or fields.

The array must sit at the root of the payload, or under one key of the root object.

Example: a Risk Register table in an Enterprise Risk Management solution. A vendor questionnaire tool posts every finished assessment with a list of findings. The loop creates one risk record per finding, with its title and severity.

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 the webhook payload did not run as expected: check these five 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. The array's position. It must be at the root or under one key. Arrays inside arrays are not supported. See Looping with JSON Arrays in SmartSuite.

  3. No test payload. Send a test request and select Use this structure before you pick the array. See Automation Trigger: Webhook.

  4. Current item. A plain array gives the value. An array of objects gives a list of keys. See Understanding "Current Item" in Looping Actions.

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

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 request and the response code your system got.


Which payloads can the loop read?

Two shapes work.

A root-level array:

["item1", "item2", "item3"]

A named array under the root object:

{ "findings": [ {"title": "No SOC 2 report", "severity": "High"}, {"title": "Weak password policy", "severity": "Medium"} ] }

Arrays inside other arrays are not supported.


How do I set up the loop?

  1. Under When this happens, add When webhook is received.

  2. Send a test request. Select Test Trigger, pick the request, then select Use this structure.

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

  4. In Select List, select the trigger, When webhook is received.

  5. In Webhook response, pick the array. A named array shows as Request Data.findings. A root-level array shows as Request Data.

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


How do I read the item inside the loop?

  • A plain array, such as a list of emails: Current item is the value. There is no list of keys.

  • An array of objects, such as the findings: Current item offers its keys, such as Current item > title.

Earlier steps' data is also available inside the loop.

For the questionnaire, Create a record in Risk Register sets Title to Current item > title. It sets the severity field from Current item > severity.


What are the limits?

  • Looping groups: several per automation, such as one per Conditional Logic branch. Nothing can follow a Looping group.

  • Nesting: a loop can hold another loop or a Conditional Logic action, two levels deep in total.

  • List size: no fixed limit, but a very large array slows the run.

  • Run history: the loop's actions are grouped and collapsed.

To loop over the response of Make an HTTP(S) request instead, see Looping Through Data from Webhook Actions.


Frequently asked questions

Why can I not pick my array in Webhook response?

No structure was saved yet, or the array sits inside another array. Send a test request and select Use this structure.

Can I loop over a list of plain values, such as emails?

Yes. Current item is then the value itself, such as one email address.

Can I add an action after the loop?

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

Is there a limit on how many items a loop handles?

There is no fixed limit, but a very large array slows the run.

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?