Create an array from an array with collections

Hi makers,

from activecampaign I receive an array with deals. From this array I just want to extract the id of the deal and put it into a new array. And only if the status of the deal = 2.

The new array should then look like this: dealids=array(6212,6215,6220)

How can I solve the problem? Many thanks for your help.

if found the solution by my self.
I use an array aggregator and map to array to my needs like:
{{map(1.body.deals; “id”; “status”; 2)}}

2 Likes

Congratulations on figuring the solution by yourself! Have you gone through the Make Academy yet? I highly recommend it if you haven’t.

Links

Here are some useful links and guides to help you get started and learn more on how to use the Make platform, apps, and app modules —

General

Help Center Basics

Articles & Videos

2 Likes