To book meetings or email your scheduling link without leaving Salesforce, you can add Salesforce buttons to accounts, contacts, or leads. You can also add your link to email templates and your email signature.
For example:
-
When you create a Schedule Calendly Meeting button, you can pull up your Calendly booking page when you have a client on the phone, and book a meeting in realtime.
-
When you create an Email Calendly Meeting button, you can automatically add your Calendly scheduling link to an email draft within Salesforce.
Before you begin
If you'd like to make your scheduling links dynamic based on the lead owner, contact owner, or another object record, follow the steps in Creating dynamic scheduling links in Salesforce before completing the steps below.
How to create a custom button to schedule Calendly meetings
- If you want to reference the record owner's Calendly link, first follow the step in the Creating a custom formula field section of our Dynamically referencing Calendly links in Salesforce email templates and buttons Help Center article.
- From Setup, in the Quick Find search bar on the right-hand side, search Object Manager.
- From Object Manager, select the object you'd like to add a button to (we will use Lead for our example).
- Select Buttons, Links, and Actions.
- Select New Button or Link.
- At Label, enter Schedule Calendly Meeting.
- At Description, enter a description.
- At Display Type, select Detail Page Button.
- At Behavior, choose Display in new window.
- At Content Source, choose URL.
- Within the editor box, copy and paste the following code:
- For a hard coded link if this button should always open the same link (i.e. Round Robin event):
- ADD_YOUR_LINK?sfid={!Opportunity.Id}&name={!Contact.FirstName}%20{!Contact.LastName}&email={!Lead.Email}
- Within the code, replace ADD_YOUR_LINK with your Calendly link.
- Note: Include https:// when adding your link.
- For the record owner's Calendly link (this code is the example for a Lead):
- {!URLFOR( Lead.Owner_s_Calendly_Link__c)}?sfid={!Opportunity.Id}&name={!Contact.FirstName}%20{!Contact.LastName}&email={!Lead.Email}
- For the Calendly link of the current Salesforce user accessing the button:
- {!URLFOR( User.Calendly__CalendlyLink__c)}?sfid={!Opportunity.Id}&name={!Contact.FirstName}%20{!Contact.LastName}&email={!Lead.Email}
- For a hard coded link if this button should always open the same link (i.e. Round Robin event):
- Select Save.
- To add the newly created button to your page layout, under Object Manager, navigate to Page Layouts.
- Classic: Select Buttons, then drag the Schedule Calendly Meeting button to the Lead Detail.
-
Lightning: Select Mobile & Lightning Actions, then drag Schedule Calendly Meeting button to the Salesforce Mobile and Lightning Experience Actions section.
How to email your Calendly link from Salesforce
- Create an email template with your link
- Create a button that links to a mailto: url
- Create a Salesforce email signature with your link
- Create a flow launched from a quick action (advanced)
Create an email template
You can follow Salesforce's instructions to Create an Email Template in Lightning Experience.
You can append information to your link, such as an object ID or additional details to pre-populate the booking page.
Create a button
You can create a button that links to a mailto: URL, which will open an email in your default mail client. The email is then created outside of Salesforce.
-
From Setup, go to Quick Find / Search, and search for Object Manager.
-
From Object Manager, select the object you'd like to add a button to.
-
Select Buttons, Links, and Actions.
-
Select New Button or Link.
-
At Label, enter Email Calendly Meeting.
-
At Description, enter a description.
-
At Display Type, select Detail Page Button.
-
At Behavior, choose Display in new window.
-
At Content Source, choose URL.
-
-
Within the editor box, copy and paste the following code:
mailto:{!Contact.Email}?subject=Schedule%20a%20call%20&body=
You%20can%20easily%20see%20my%20real-time%20availability%20
and%20schedule%20time%20with%20me%20at%20ADD_YOUR_LINK?sfid={!Case.Id}- Within the code, replace ADD_YOUR_LINK with your Calendly link.
Note: Include https:// when adding your link. - If appending multiple parameters (for example, to prefill additional fields), you can use ? for the first parameter, but for the additional parameters, you will need to use %26 in place of & and %3D in place of =.
- Within the code, replace ADD_YOUR_LINK with your Calendly link.
- Select Save.
- To add the newly created button to your page layout:
- Under Object Manager, go to Page Layouts.
- Select Mobile and Lightning Actions, then drag the Email Calendly Meeting (Button) element into the Salesforce Mobile and Lightning Experience Actions section.
Create a Salesforce email signature
You can add a Calendly link to your Salesforce email signature, then compose an email from within a Salesforce record. Note that this solution does not support merge tags, such as an SFID or pre-populating information.
- To add your link to your email signature, follow Salesforce's instructions to Learn how to add a link to your email signature.
- Next, compose an email from within a Salesforce record. Follow Salesforce's instructions to Send an Email from a Record in Lightning Experience. Your link will initially be at the bottom of the email, but you can move the link elsewhere.
Create a flow launched from a quick action
As a Salesforce Admin, you can create your own custom flow to send a dynamic invitation link via a quick action button from a record. You can see an example setup below, but you can completely customize this depending on the action you'd like to trigger and the information you'd like to record in Salesforce.
- From Setup, go to Quick Find / Search, type Buttons, and see the filtered results.
- Under the object you'd like to add a button to, select Buttons, Links, and Actions.
- Select New Button or Link.
-
At Label, enter Email Calendly Meeting.
-
At Description, enter a description.
-
At Display Type, select Detail Page Button.
-
At Behavior, choose Execute Javascript.
-
At Content Source, choose OnClick Javascript.
-
- Within the editor box, copy and paste the following code
:
window.location.href="mailto:{!Contact.Email}?subject=Schedule%20a%20call%20&body=You%20can%20easily%20see%20my%20real-time%20availability%20and%20schedule%20time%20with%20me%20at%20ADD_YOUR_LINK?sfid={!Opportunity.Id}";
- Within the code, replace ADD_YOUR_LINK with your Calendly link. Note: Include https:// when adding your link.
- Select Save.