Hi all,
I have never used the Array function and unfortunately the FAQ is not really clear, so hope I can find some help here.
Once a form is submitted, I receive a webhook. The info comes in (what I believe is) the array format:
Now, I’m trying to understand how I can split the array and return each field (Email, Phone, File, etc) individually, to be able to map it and use it for example to update a monday item, or so on.
I tried something like this:
but it doesn’t work.
The iterator seems to return all the different fields separately, which is good, but now, how do I use them?
I’m not able to map the individual fields:
Welcome to the Make community!
You can use the built-in functions map
and get
/first
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
—
{{ get(object or array; path) }}
e.g.: for Email’s value (paste this into the field)
{{ first(map(3.data; "response"; "label"; "Email")) }}
You can also combine map
and join
to combine the variables within an array into a single text string.
and the built-in function join
—
{{ join(array; delimiter) }}
For more information, the function’s documentation 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 —
Getting Started
Help Centre Basics
Articles & Videos
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.