Send whole array instead of looping thru items

Hi! I’m very new to make

I’m hitting a HTTP API that’s returning an array with “prospects”; I would like to use these items as input for the Woodpecker Module “Create a Prospect”.

The module/api allows you to create many “prospects” in just 1 module execution/API call but I don’t understand how to specify the mappings for the whole array.

image

I tried to use it with an iterator, which works but makes too many API calls (one for each prospect)

I would like to be able to send all of my Prospects in a single (or a few) module/API calls

To “combine” them into a single structure, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module.

In the Array Aggregator, you can select the “Target structure”, so just pick “Prospects” and in the Prospects field, turn on the Map toggle and insert the aggregated array variable.

4 Likes