• 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

Is there an equivalent to a for-in loop in Pabbly?

Status
Not open for further replies.

drpx

Member
Your Task History ID
IjU3NjYwNTZmMDYzNTA0M2Q1MjY4NTUzNzUxMzUi_pc
I'm using pabbly to automate hotel tasks. I need to send reminders to guests that are supposed to checkout in the current day, so I set up a schedule to run everyday at 9:00AM

By 9:00, the workflow fetches an API with all guests (even the ones the aren't checking out)

The API returns a list with many objects, every object being a guest. Inside the object, there are key-values such as endDate (which is the day they are leaving)

So, I need to loop thru the guest list, and if "endDate = today", I'll send them a message as a reminder

I tried this in so many ways but I cant achieve it. Problems I'm facing are the response from the API is every key-value pair in the list (it would be fine if every guest were in a separate object). Also, if I turn off simple response, I just can't by any means iterate thru the array to send them a message

So, summarizing, in my workflow, for the API request for every "Data [N] endDate" ([N] being the index for each guest) I need to check if the date equals to the current day. If so, send every single people a message.

How can I achieve that? Thanks!
 
Status
Not open for further replies.
Top