Nested Iterators

Status: Open · Asked by sb96 on · 0 views

sb96 — Question ·

Hi all!

I am trying to process a json response which takes a format similar to the example format below. What I want to do is I want to create an airtable element for each option of each element in the outer list.

The way I thought of implementing this is to have two nested Pabbly iterators, one going over the elements of the outer list, and then a following one to go over each element's options.

However, when I run the integrations, it seems to only process the first option of the first element (i.e. name="first element", optionId=1, value="yes").
What could I be doing wrong? Am I actually able to use nested iterators? I know in other tools like Zapier this isn't possible, but Pabbly let me create the iterators, so I was hoping that was possible?

Attaching also a screenshot of the shape of my workflow at the bottom.

[
{
"name": "first element",
"options": [
{
"optionId": 1,
"value": "yes"
}
]
},
{
"name": "second element",
"options": [
{
"optionId": 1,
"value": "no"
},
{
"optionId": 2,
"value": "yes"
}
]
},
{
"name": "third element",
"options": [
{
"optionId": 1,
"value": "yes"
},
{
"optionId": 2,
"value": "yes"
}
]
}, ...

]

Arshil Ahmad — Reply ·

Could you please share the Workflow URL where you have tried this?

Back to all forum threads · Log in to reply