API call output not parsed entirely

Hi there,

Here is the output of a query graphQL API call to Shopify. The 2 values pointed with red arrow are the one I need:

But when i tried to map them in the next module, I can’t, like the havn’t been parsed:

Any idea?

Hi,

Welcome to the Make Community!

Yes “nodes” are array. You must either iterate them using iterator module or build variables using Make’s functions.

Here you can learn more how to solve your issue:
https://www.make.com/en/help/mapping/mapping-arrays

Have a nice day!

Thanks a lot,

Sadly I’ve tried that already and it didn’t help much. If I iterate “nodes” array using iterator module, the output seems correct:

However, I got the same issue after that, I’m unable to map anything from the iterator module in my next module:

Welcome to the Make community!

You’ll have to use the built-in functions map and first, or directly reference it like this:

{{ 20.body.data.product.sellingPlanGroups.nodes.1.sellingPlans.nodes.1.name }}

If you want to do it the map and first method, read more about it in the “Mapping with Arrays” link below:

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 —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!