Can only access one bundle/collection of an array

Hi everyone,
Let me get straight to the point:

  • I have a starting module which outputs an array (In this case it’s Calendly, but I have the same problem with all other modules that also output an array)
  • When previewing the array, I can easily access all bundles it contains


I have tried using an Iterator. The problem with the iterator is that it splits the collections/bundles, so that it just repeats all following modules for each bundle/collection, which is not what I want. I just want to extract information from one of the bundles/collections.

I have also tried using an array aggregator after the iterator, but it just does the exact same of creating an array, of which I can only access one (random/first?) collection.

I know that there are some other forum posts on this topic, but I couldn’t find an answer.

All help is highly appreciated!

Welcome to the Make community!

In that case, you don’t even need an iterator or aggregator.

You can use the built-in function map and get/first to get the answer for the specific/single question that you want.

e.g.:

{{ first(map(array; answer; question; "What is your ...")) }}

If you need further assistance, please provide the following:

Please provide the output bundles of the trigger modules 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-input-bundle.txt (12.3 KB)
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!

samliewrequest private consultation

3 Likes

Hi @Julius_F
You can use get and map function.


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

2 Likes

Thanks a lot, @samliew and @Msquare_Automation!
This was exactly what I was looking for!
You guys are great!

No problem, glad I could help!

1. If you have 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!

samliewrequest private consultation

Join the Make unofficial Discord server!

1 Like

I already marked it as solution

2 Likes