• 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

Constructing a nested JSON with Iterator

mjv001

Member
Is it possible to use Iterator and construct a nested json?
I want to retrieve the list of abandoned carts from Shopify but the response payload doesn't include the product Images for each line Items.
So I plan to use Iterator to loop through each line items per customer and retrieve the product image/details then reconstruct the JSON payload

Highlevel workflow is like this
  1. Shopify-Abandoned Carts
  2. Iterator per Customer
  3. Iterator per Customer - Line Item
  4. Shopify-Get Product Images
  5. Construct a JSON
  6. POST to my API

{
"Customer": [
{
"id": "UID001",
"email": "[email protected]",
"line_items": [
{
"product_id": "PID001",
"quantity": 1,
"title": "Prouct 1",
"line_price": "100.00",
"image_src": "https://xxx"
},
{
"product_id": "PID002",
"quantity": 1,
"title": "Prouct 2",
"line_price": "200.00",
"image_src": "https://xxx"
}
]
},
{
"id": "UID002",
"email": "[email protected]",
"line_items": [
{
"product_id": "PID001",
"quantity": 2,
"title": "Prouct 1",
"line_price": "100.00",
"image_src": "https://xxx"
},
{
"product_id": "PID002",
"quantity": 2,
"title": "Prouct 2",
"line_price": "200.00",
"image_src": "https://xxx"
}
]
}
]
}
 
P

Pabblymember11

Guest
Hey @mjv001

We have replied to your query on your another thread. So, kindly check that out.
 
P

Pabblymember11

Guest
Hey @PatrickInt

You can refer to the following video tutorial on round robin to distribute the iteration in separate routes.

 
Top