• 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

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

Changing between Iterator results

Your Task History ID
IjU3NjYwNTZlMDYzNzA0MzU1MjZiNTUzNTUxMzQi_pc
Hi,
Is there a way to cycle through iterator results to get a range of data that fit all our use cases?
Right now I am only able to see one set of data and that makes it impossible to complete the automation as not all set of data have the same JSON structure.
Thanks!
 
D

Deleted member 15445

Guest
Hey @hugohamelcom

In the Iterator Module, the response displays only the first array and its key-value pairs from the entered JSON. To meet your use case, you will need to use different JSONs.

Let us know if you need any further clarification.
 
Hey @Luv, that is exactly the issue, if the response contain 100+ arrays with different format but only a few have all the values necessary to complete the automation, how can I access that exact array?
Would it be possible to add a way to select a specific array in the iterator module to be able to get all the values needed?
Thanks!
 
D

Deleted member 9923

Guest
Hello @hugohamelcom ,

In the iterator module, the response will only contain one key-value pair at a time. If you need to retrieve more key-value pairs, you would need to iterate again. You can modify the JSON accordingly and run the iterator multiple times to gather all the required values. Each iteration will return first key-value pair, so you would have to repeat the process to get the full set of data.
 
Hey @MukeshR, why not just add a "navigation" to the iterator? Because if I add a temporary transformed JSON and then remove it I won't be able to access it in the iterator anymore, so when I will save the new value it will break all the other modules and say the values doesn't exist.
 

ArshilAhmad

Moderator
Staff member
Could you please create a short screen recording showing the issue you're encountering? Also, share the workflow URL where this issue is occurring.
 

Preeti Paryani

Well-known member
Staff member
Hello @hugohamelcom,

Upon reviewing your use case, it seems that each object in the API response has a different structure. Currently, the iterator can only map the first object of the array. Since the first object doesn’t contain the required information, your use case doesn’t appear to be achievable at this time.

However, if you can modify the API response so that the first object in the array includes all the necessary fields for processing, you could then add filters to your workflow based on this object. This would allow the automation to function correctly.
 
Top