Help me to write get map

What are you trying to achieve?

Hello.
I have Array of Collections as shown on the pic. I want to get values of collections with names: authorName, authorContacts, songID.
Help me, please.

Screenshots: scenario setup, module configuration, errors

Hi, To extract the values of autorName, autorContacts, and songID using the get and map functions, you can use the following setup:

  1. Iterator Module:

    • Array: {{1.variables}}
  2. Text Aggregator Module (for autorName):

    • Text: {{get(map(1.variables; "value"); indexOf(map(1.variables; "name"); "autorName"))}}

Same for autorContacts and songID

So if I have 7 variables, I should have 7 Text Aggregators? I think there is a better way.

You can use the built-in function toCollection

e.g.:

{{ toCollection(1.variables; "name"; "value") }}

Screenshot_2024-07-08_200706

For more information, see the function documentation in the Help Center.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

2 Likes

Very cool! Thanks. You help me a lot.

1 Like