I have this data structure, returned from an http call. Now, all I want is to get a flattened array of values [{‘startTime’: ‘x’, ‘endTime’: ‘y’}, …]. How to do it? I am a coder, so I understand logics. But this no-code thing creates more problems than making things easier.
Welcome to the Make community!
You will first have to convert the variable data.data.slots
into an array.
You can use the built-in function toArray
For more information, see the function documentation in the Help Center and do the tutorials in the Make Academy.
Then, you will be able to use an Iterator and Text Aggregator module.
Hope this helps! Let me know if there are any further questions or issues.
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”
- Make Academy – Basics 101: Learn Make and get certified
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
- How to use Regex in Make - How to use pattern matching to extract the text you want
- Webhooks – Make Academy – tutorial on how to use Webhooks
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.