Extracting items in an array of collections

I have tried several functions and modules to extract the values of the Channels_IDs from an Array Aggregator module output, but I got either an empty or just one channel_ID. I hope someone here can help me with this.

Welcome to the Make community!

You have not yet provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any error(s).

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and prevent tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

Sharing these details will make it easier for others to assist you. Thanks!

@samliew

Thanks for your response. Kindly see the screenshots and blueprint of my current scenario. Note that I’ve been trying to use different modules from Array Aggregator, Iterator, Set variable, Text Aggregator, Parse JSON, etc. and different mappings using get-map function combination, join function, formatArray, etc but still failed to get the desired output, which is an array of Channel_IDs.



blueprint.json (167.1 KB)

Array Aggregator output:

[
{
IMTKEY”: “TOUCAN”,
“array”: [
{
“data”: {
“Channel Name”: “tadextra”,
“Channel_ID”: “C07RV5F91MW”,
“assignedPOD”: “TOUCAN”
}
},
{
“data”: {
“Channel Name”: “frankie-rose”,
“Channel_ID”: “C04415LH78U”,
“assignedPOD”: “TOUCAN”
}
},
{
“data”: {
“Channel Name”: “funday”,
“Channel_ID”: “C07RG1NE7PE”,
“assignedPOD”: “TOUCAN”
}
},
{
“data”: {
“Channel Name”: “biogenesis”,
“Channel_ID”: “C07QD7SA39A”,
“assignedPOD”: “TOUCAN”
}
},
{
“data”: {
“Channel Name”: “organic-traditions”,
“Channel_ID”: “C088NT5JYLT”,
“assignedPOD”: “TOUCAN”
}
}
]
}
]

By the way, I got an error when I tried to upload more than 3 screenshots.

Welcome to the Make community!

To do this, you can use the built-in function map

{{ map(complex array; key) }}

e.g.: (paste this into the field)

{{ map(1.array; "data.Channel_ID") }}

Screenshot_2025-03-31_210324

For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

1 Like

Thank you very much, it worked.

1 Like

No problem, really glad I could help! Thank you for providing all the requested information — that allowed me to come to a solution quickly.

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

This is well noted. Thanks again.