Dear all,
I’m new to Make, and have a kind of big issue. I’m extracting data out of an api, I need to loop multiple time as the api provide different responses. The responses are in the form of an array.
I’m trying to agregate all the data that comes into an array operator, and the result makes it complex; I have A collection of array, containing a collection of array, and inside of it I have my last level of collections. see:
My target is to extract and flaten all those low level collections into a csv, I’m trying for 2 days any solutions without success …
Welcome to the Make community!
You can use a Set Variable module after the Aggregator with 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 flatten
—
{{ flatten(array) }}
e.g.: (paste this into the field)
{{ flatten(map(31.array; "data")) }}
For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.
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.
1 Like
thanks a lot, i’ll try that 