Salesforce scheduling buttons for contacts, leads and cases

Salesforce scheduling buttons provide quick access to a Personalized link using the Salesforce Record ID. Bookings made via this link are automatically added to the record and the customer making the booking does not have to provide any information that already exists for this record. Salesforce scheduling buttons can be used in two ways:

  • The Booking page link can be copied and sent to the customer
  • The Salesforce user can schedule on behalf of the customer

Salesforce scheduling buttons can be configured to prepopulate the booking form, or skip it altogether. This is enabled by the optional mapping step in the ScheduleOnce Salesforce setup wizard, where you can define the mapping between Salesforce record fields and ScheduleOnce booking form fields. In this article, you will learn how to create a Salesforce schedule button and add it to the Lead, Contact or Case page layouts in Salesforce.


To add the button to the Lead, Contact, or Case Page layouts in Salesforce, you will need:

Important The Salesforce Lightning experience does not support OnClick Javascript buttons. If you are switching to the new Lightning experience, you can either invoke Apex classes in the process  builder, or add a javascript controller for the Lighning Design System. Learn more about using OnClick Javascript button with the Salesforce Lighning experience

A) Creating the button in Salesforce
Salesforce provides a simple editor to create buttons for Standard objects. To create a button and add it to the page layout:

  1. Log in to Salesforce.
  2. In your Salesforce Setup page, go to Customize.
  3. Select the Lead, Contact, or Case object and then Buttons, Links, and Actions (see Figure 1).

    Figure 1: New Button or Link for the Lead standard object

  4. Enter the following information (see Figure 2):
    • Label: The text displayed on the button
    • Name: A unique name for the button
    • Description: A description for the button
    • Display Type: Detail Page Button 
    • Behavior: Select how you would like the booking page to open. New Window is recommended as it also allows you to copy the link.
    • Content Source: URL
    • Large text box: This large text box should include the Personalized links (Salesforce ID) for the Booking page or Master page that you would like to use. Learn more about Personalized links (Salesforce ID)
  5. If you want to control the size of the window in which the Booking page opens, you can use Javascript code. In the Code below, first replace the red text by the Personalized links (Salesforce ID) of your Booking page of your choice. Once completed, copy and paste the updated code in the Code box."COPY AND PASTE YOUR PERSONALIZED LINK (SALESFORCE ID)", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=200, left=200, width=900, height=600")

    Note that when you use JavaScript code, you must set the Behavior option to "Execute JavScript"

    Figure 2: New Button or Link

  6. Click Save

B) Add the button to Standard Objects Page layouts
Now you need to add the button to the relevant Salesforce Page layouts.

Note Page layouts control which buttons are visible. If you want to display the buttons only to specific Salesforce Users, you can assign your Page layouts to specific Users. Learn more

  1. In your Salesforce Setup page, go to App Setup > Customize
  2. From the object where you have previously created the Custom button, select Page Layout (see Figure 3).
  3. On the Page Layout page, select Buttons.
  4. Click and drag the Schedule Now button to the Custom buttons area (see Figure 3)

    Figure 3. Lead Page layout
  5. When you have completed your edits, click the Save button.

You are done. You can open any record for the object to which you have added the button to, click the button and make a test booking.

Was this article helpful?
Thank you for your feedback!