Integrations

Webhook Looping for Arrays and Line Items

A webhook can contain several attachments, order lines, or records. FastHook can run a Workflow Action sequentially for each item in the array.

Capture the original request first, enforce the available trust boundary, then route and replay from durable evidence.

How the integration works

  • An Action can loop over an array from the Trigger or an earlier Step.
  • Mappings can use loop.item, loop.index, and loop.count.
  • Set a maximum between 1 and 1,000 items before processing the batch.
  • The output preserves the input order and includes each item with its Action result.

Setup

  1. Receive a test webhook containing the array you want to process.
  2. Add the provider Action that should run for each item.
  3. Enable Loop over an array, choose the input array, and set the maximum item count.
  4. Map fields from loop.item into the Action and inspect the run results before activation.

Production notes

  • An empty array completes without calling the provider.
  • A non-array input or a batch above the configured limit fails before processing.
  • Design side effects to tolerate sender retries and deliberate reruns.

Related documentation