How to make the iterator output static when mapping

Welcome to the Make community!

You can use the built-in functions map and get to access variables within an array.

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

{{ map(complex array; key; [key for filtering]; [possible values for filtering separated by a comma]) }}

and the built-in function get (or first) —

{{ get(object or array; path) }}

so you get something that looks like this —

{{ first(map(1.array; "value")) }}
{{ first(map(1.array; "value"; "name"; "content-type")) }}

e.g.:

{{ first(map(11.array; "value"; "name"; "Energy Score")) }}
{{ first(map(11.array; "value"; "name"; "Top Win")) }}
...

(copy-paste the above into the field, or type it exactly as shown)

For more information, the function documentations can be found in the Help Centre and the “Mapping with Arrays” link below. You should also complete the tutorials in the Make Academy, especially Using get() and map() functions.

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 —

Learn Make

How-Tos

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

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!