Splitting collections out from the array

Dear all,
I have this array aggregator with this content.
It consists of 15 collections. Each collection consist of “task_content”.

I want to extract all these seperately and independently of each other. Meaning, I want to use say 1.task_content for module ABC, and 11.task_content for mobile EDF down the road. So I guess iterator wouln’t work as I would be left with 15 items. I just want them by themselves :slight_smile:

Appreciate any help.

You should just be able to use the get() function to do this. You can do get(array; 1.task_content) and that should work

2 Likes

Each of your array elements can be accessed via the array index

Array[1] will get you the first element (also the first() array function will do that).

If you share your bundle output here as JSON, I could show you a few ways to use the output in various modules.

If you iterate the Array array then what will happen is all the modules behind the iterator will run once per each collection, and you may (or may not) want that. An iterator is a loop that is driven off the contents of the array being iterated.

2 Likes

Thanks for all your input. However, I am still not able to fish out the array. :frowning: Not sure what I do wrong. I have included another picture of the bundle. The array aggregator output contains all the bundles (with collections).

Included picture of the flow

Welcome to the Make community!

Please provide the output bundles of the aggregator module (shown in your screenshot) by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

3 Likes