• 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 I formulate input for Iterator

meltingsand

Member
I have some data which Chat GPT is outputting in this format:
[
{"Category" : "Home", "Task" : "Wash Car", "Date" : "Feb 23, 2025"},
{"Category" : "Church", "Task" : "Send new report to the Bishop", "Date" : ""}
{"Category" : "Work", "Task" : "Email new client data", "Date" : "Feb 28, 2025"}
]
This seems like a valid array format, but when I make the output non simple it puts everything in one variable like this: https://share.zight.com/eDubJ7A5
If I feed it to Iterator in that format it just puts the whole array in a single field like this: https://share.zight.com/OAudejEN

How should I alter the output format so it can be parsed by Iterator and loop through one element at a time?

You can check this out in my account: [email protected]
 

ArshilAhmad

Moderator
Staff member
Hi @meltingsand,

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

Also, the output you shared appears to be missing a comma, which makes it an invalid JSON.

1740935153873.png


1740935288717.png
 

Preeti Paryani

Well-known member
Staff member
Hello @meltingsand,

Upon reviewing, we noticed that the ChatGPT response contains nested arrays. An Iterator was already added to process the array received from the ChatGPT step. To further refine the handling, we have now added another Iterator to map the required array from the previous Iterator's response.

Please refer to the attached images for more details. We recommend running a few tests after verifying the mapping of all steps. Let us know if everything works as expected.

1741082293729.png


1741082300267.png


1741082311091.png
 
Top