How to flatten a collection in specific format?

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 Basics

Articles & Videos

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.