• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

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