Iterating over collections inside arrays

Hello everyone,

I’m currently working on a scenario in Make where I need to access the text field from an array of objects within an output bundle. Here’s a summary of what I’ve tried so far:

  1. The output bundle contains a data array with multiple collections, each having a text field.

ive tried the following in my iterator array input -

{{map(get(1; “data”); “text”)}}
{{map(1.data; text)}}
{{map(1.data; 1.data.text)}}

Please help I’m going mad! :stuck_out_tongue:

httpModuleOutput.txt (55.4 KB)

Welcome to the Make community!

This should be correct:

{{ map(1.data; "text") }}

(copy-paste the above into the field, or type it exactly as shown)

Hope this helps! Let me know if there are any further questions or issues.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Thanks very much I ended up using a different method

Hello @cybernetix :waving_hand:

Would you have a minute to step in and share the method? That would be very valuable for the community. :folded_hands:

Thank you!

I just used the apify app instead of all my custom stuff.

2 Likes