• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

How to tell Iterator what array to use?

itsmanumr

Member
Hello,

I have a Workflow initiated by a webhook. This webhook receives a JSON every time a third-party application requires it to start.

The received raw message has the following format:

[
{
"key": "value",
"key": "value",
"key": "value",
"array": [
"valueX",
[
"Test 1",
"Test 2",
"Test n"
]
],
"key": "value",
}
]

From this JSON, I need to add an iterator that only iterates over the values inside the second array (in this example: Test 1, Test 2, Test n). For each iteration, it should send valueX and the corresponding value from the array to another endpoint. In this example, each iteration should send:

Iteration 1: valueX+Test1

Iteration 2: valueX+Test2

Iteration n: valueX+Testn

The problem is that when I receive the initial message, the webhook converts the entire message into key-value pairs, putting all the array values at the same level and converting them into unique values. When trying to configure the iterator, it does not detect the presence of any array.

I have also tried disabling simple response and, through transformations, keeping only the relevant array. However, the iterator does not recognize it in this way.

How can I approach this situation?
 

ArshilAhmad

Moderator
Staff member
Hey @itsmanumr,

Please grant me access to your workflow by adding me as a team member. This will allow me to gain a better understanding of your workflow.
Once you have added me as a Team Member, do let us know the name of your workflow.
Email: [email protected]
Also, remember to revoke access once your query has been resolved.

Attaching a video for your reference:

 
Top