Custom Functions in Zoho Bookings

Estimated reading: 2 minutes 336 views

Zoho Bookings custom functions let you automate actions that go beyond built in features, such as generating an invoice in Zoho Invoice automatically when an appointment is booked.

What custom functions do

Custom functions are written in Deluge, Zoho’s scripting language, and let you run logic, call APIs and integrate with other Zoho or third party services. They can run automatically when an appointment is booked, rescheduled, cancelled, marked as completed, or marked as a no show.

  • Super Admins and Admins can view and edit custom functions.
  • Managers can view them only.
  • Staff have no access.

How to configure a custom function

  1. Click the Manage Business icon at the top right of your screen.
  2. Select the workspace you want to configure.
  1. Click Custom Functions under the selected workspace.
  2. Click Configure next to the trigger event you want the function to run on, for example “Booked”.
  3. In the Deluge editor, write your logic using the bookingInfo map variable, retrieving values with the get() function, for example bookingID = bookingInfo.get("booking_id").
  4. Click Save to activate the function. You can test it immediately using Execute.
  5. Make sure the event checkbox is selected so the function runs when that event occurs.

Tips

  • All appointment related information is stored in the bookingInfo map as key value pairs.
  • Use the exact Deluge key names, such as “customer_name” or “start_time”, to avoid errors.
  • Test with the Execute option before relying on a function in production.
  • Only Admins and Super Admins can edit custom functions; Managers can only view them.

Frequently asked questions

What scripting language do Zoho Bookings custom functions use?

Custom functions are written in Deluge, Zoho’s scripting language, which lets you run logic, call APIs and integrate with other Zoho or third party services.

Who can create or edit custom functions?

Super Admins and Admins can view and edit custom functions. Managers can only view them, and Staff have no access.

Can I test a custom function before it goes live?

Yes, the Execute option lets you run your script with sample data before relying on it in production.

Need help?

Need help building custom functions in Zoho Bookings? Contact support@thoughtlogik.com or see our Zoho integrations services.

Leave a Reply

Your email address will not be published. Required fields are marked *

Learn how we helped 100 top brands gain success

Subscribe

×
Cancel