How to retrieve and aggregate the values of all collections in an Array

I want to acquire the following values from each of the 10 collections in “words” in the following OUTPUT and send them together on a chat tool.

The values to be acquired (red frame in the image below)

・label
・label_ipa in syllables
・score

I want to get the above values and send the following text on line etc.

First Collection
label: xxx
label_ipa: xxx
score: xxx

Second Collection
label: xxx
label_ipa: xxx
score: xxx
.
.
.
(Send all collections)

The number of Collections in the Array **changes each time**. I want to be able to get all the above values even if the number changes every time. I tried to connect the Array aggregator and get the values in the following way, but only the first one comes up.

image

I would be greatful if you would help me with this.

Thank you.

Welcome to the Make community!

1. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

2. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
Screenshot_2023-10-06_141025

A.

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

Uploading it here will look like this:

bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle 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 output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hi @Rentaro_Kashima

Before aggregating, please use iterator to iterate all the bundles in words. Then you can easily map the values from iterator.

While inside your collection, syllables and phones are also arrays. Hence, while mapping from iterator, please use get and map function for these variables.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

2 Likes