• 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.

  • Due to Diwali and Bhai Dooj celebrations, our team will have limited availability. While we’ll continue to monitor threads, responses may be slightly delayed. Normal operations will resume on Friday, 24th October 2025.

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