# Create an array from an array with collections

**URL:** <https://community.make.com/t/create-an-array-from-an-array-with-collections/31962>\
**Category:** Questions\
**Tags:** arrays\
**Created:** [March 28, 2024, 9:41am UTC](https://community.make.com/t/create-an-array-from-an-array-with-collections/31962 "2024-03-28T09:41:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushsafer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/pushsafer/32/9057_2.png) [@Pushsafer](https://community.make.com/u/Pushsafer)\
**Post date:** [March 28, 2024, 9:41am UTC](https://community.make.com/t/create-an-array-from-an-array-with-collections/31962/1 "2024-03-28T09:41:26Z")

</div>

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.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/d/dd421bd5d46ce446ac140b07be17d33c9d367602.png)

---

<div class="post-metadata">

**Author:** ![Pushsafer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/pushsafer/32/9057_2.png) [@Pushsafer](https://community.make.com/u/Pushsafer)\
**Post date:** [March 28, 2024, 10:05am UTC](https://community.make.com/t/create-an-array-from-an-array-with-collections/31962/2 "2024-03-28T10:05:34Z")

</div>

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)}}

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 28, 2024, 12:05pm UTC](https://community.make.com/t/create-an-array-from-an-array-with-collections/31962/3 "2024-03-28T12:05:08Z")

</div>

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](https://www.make.com/en/help) | [Tutorials](https://www.make.com/en/help/tutorials.html)
- [Make Academy](https://academy.make.com) – learn Make and get your certificate **← CHECK THIS OUT**
- [Make Blog](https://www.make.com/en/blog) – get the latest updates
- [Features & Pricing](https://www.make.com/en/pricing)

### Help Center Basics

- [Mapping](https://www.make.com/en/help/mapping/mapping) – What is mapping? What can I map? **← CHECK THIS OUT**
- [Mapping with arrays](https://www.make.com/en/help/mapping/mapping-arrays) – How to map items in an array **← CHECK THIS OUT**
- [Tokens for `parseDate`](https://www.make.com/en/help/functions/tokens-for-date-time-parsing) | [Tokens for `formatDate`](https://www.make.com/en/help/functions/tokens-for-date-time-formatting)
- [HTTP modules](https://www.make.com/en/help/tools/http) – Make a request, Get (download) a file
- [Webhooks](https://www.make.com/en/help/tools/webhooks) – Error Handling, Responding to webhooks

### Articles & Videos

- [Router Magic Formula](https://www.youtube.com/watch?v=4Q-5BsCtJu4)
- [How to use Regex in Make](https://community.make.com/t/how-to-use-regex-in-make/202)
- [Getting started with OpenAI](https://community.make.com/t/getting-started-with-openai-gpt-3-and-make/7796)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [April 11, 2024, 9:15am UTC](https://community.make.com/t/create-an-array-from-an-array-with-collections/31962/4 "2024-04-11T09:15:22Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


