Zoho Bookings

Set up yourself · 10 min

Every new Zoho Bookings appointment becomes a lead in the project

Before you start

A Zoho Bookings plan with Custom Functions, and Admin or Super Admin access.

Your Zoho Bookings lead URL

Your lead URL appears here when you open this page from the LeedsApp app: open the project, then Lead integrations and Zoho Bookings.

The script

Deluge
// LeedsApp: sends each new Zoho Bookings appointment to LeedsApp as a lead.
leedsAppUrl = "PASTE_YOUR_LEEDSAPP_LEAD_URL_HERE";
lead = Map();
lead.put("name", bookingInfo.get("customer_name"));
lead.put("phone", bookingInfo.get("customer_contact_no"));
lead.put("email", bookingInfo.get("customer_email"));
lead.put("booking_id", bookingInfo.get("booking_id"));
lead.put("service", bookingInfo.get("service_name"));
lead.put("staff", bookingInfo.get("staff_name"));
lead.put("start_time", bookingInfo.get("start_time"));
lead.put("time_zone", bookingInfo.get("time_zone"));
lead.put("notes", bookingInfo.get("notes"));
lead.put("more_info", bookingInfo.get("customer_more_info"));
response = invokeurl
[
	url :leedsAppUrl
	type :POST
	parameters:lead.toString()
	headers:{"Content-Type":"application/json"}
];
info response;
Open this page from the LeedsApp app to fill in your lead URL.

Set it up in Zoho Bookings

1
Open Custom FunctionsIn Zoho Bookings, click the Manage Business icon at the top right, then Workspaces. Open your workspace and choose Custom Functions.
2
Turn on the Booked eventTick the box for the Booked event, then click Configure next to it.
3
Paste the LeedsApp scriptPaste the script below into the Deluge editor. Your lead URL is already filled in. Click Save.
4
Book a test appointmentBook one appointment on your booking page with test details, for example Ravi Kumar, +91 98765 43210. Check the lead in LeedsApp.

What LeedsApp saves

Zoho Bookings sendsSaved on the lead ascustomer_nameNamecustomer_contact_noMobile numbercustomer_emailEmailservice, staff, start_time, notesNotesmore_info (extra booking form fields)Custom field
Lead source: Zoho Bookings. Zoho Bookings has no city field; a City question on your booking form arrives in more_info. The same booking sent twice is saved once.

If leads don't arrive

  • Check the Booked box is ticked; functions only run for ticked events.
  • Click Execute only to check the script has no syntax error; a real test needs a real booking on your booking page.
  • Each workspace has its own custom functions; add the script to every workspace you use.

Need help? Write to support@leedsapp.com