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.data; "id"; "role"; "Primary"))}}
(copy-paste the above into the field, or type it exactly as shown)
This is just an example. Your final solution may or may not look like this depending on your requirements and actual data.
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 | Tutorials – Make “Manual” - search for help here first
- Make Academy – Basics 101: Learn Make properly to get your money’s worth
Help Centre Basics
- Mapping – What is mapping? What can I map?
- Mapping with arrays – How to map items in an array
- Aggregate an array for mapping complex fields
- Date Format: tokens for
parseDate
| tokens forformatDate
- HTTP modules – Make a request, Get (download) a file
- Webhooks – Error Handling, Responding to webhooks
Articles & Videos
- Router Magic Formula - YouTube
- Error Handlers in Make - YouTube playlist
- Getting started with OpenAI - How to setup and use OpenAI (ChatGPT) in Make
- Text Parser module - Use pattern matching to extract the text you want
- Webhooks – Make Academy – tutorial on how to use Webhooks
Hope this helps! Let me know if there are any further questions or issues.
— @samliew