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

Application only sends certain fields. Is there a way to test for existence of a field?

Sash

Member
I am using Bookeo for our reservation system. When a new booking is created in Bookeo, the Pabbly trigger works just fine and Pabbly receives the data. The issue that I have is that the response from Bookeo only contains fields that were used in that particular booking. e.g. when the end-user creates a booking if they used a promotion code, the response received from the Bookeo API contains a field called Promotion and its contents. However if the end-user did not use a promotion code, when Bookeo sends the data for that booking, the Promotion code field is missing entirely.

I want to create a record in my Airtable database for every new booking. So if I try to use the Promotion field in my workflow, if the field is present then no problem, the field in Airtable gets populated correctly. However if the promotion field doesn't exist in the data from Bookeo, then Pabbly generates an error because I am referring to a field that is not there and the workflow terminates with UNKNOWN_FIELD_NAME error.

It would be great if the data from Bookeo contained every field whether it was used or not. However with Bookeo only sending those fields that actually have data, I'm running into this problem.

My question is, is there a way for me to test for the presence or absence of a field in the response from the triggering application?

Thanks.

Sash
 
P

Pabbly13

Guest
Hey @Sash !

Kindly create two workflows where in the first workflow, you can collect the Booking with a promotion code from the Bookeo.

You just need to add a "Filter" step as shown below-

1661148793545.png


This workflow will allow on the promotion code data to flow further.

In the next workflow, you need to use the "Filter" step as mentioned below-

1661148937090.png


This filter will only allow the data which doesn't have the promotion field in it.

Through these two workflows, you won't get an issue.

Kindly check and let us know if this works for you now.
 
Top