While Calendly's Salesforce integration will automatically create a new lead and event when a Calendly meeting is scheduled and tie it to the Salesforce user by default, the flow is entirely customizable to meet your organizations specific needs.
Note: Customizations should only be made with the support of your organization's Salesforce Admin.
IN THIS ARTICLE:
Navigating to the flow
You can access the default Create Event flow by typing in flows in the Quick Find Box in the top left-hand corner of your Setup page and clicking on Workflows & Approvals>Flows.
Note: Your organization's visual builder may be viewed in the Classic or Lightning experience. Functionality remains the same.
Assigning Leads
By default, the flow will look to match the email of the scheduled Calendly user to a Salesforce user. If there is no match, the owner will default to the System Admin. To change this behavior and have leads tied to another Salesforce User, then:
- Navigate to the Create Event Flow (see above)
- Modify the Get Record, Find User element
- Relate the Name field to the specific Salesforce user's username
Note: The Salesforce user's name must be an exact match or the lead will not be assigned.
Creating a Case or Task
By default, the flow will create an event record whenever a meeting is scheduled, but you can either modify the Create Record, Create Event element to create a Task or Case instead or build upon it altogether. For example, to create an Event and a Task or Case:
- Navigate to the Create Event Flow (see above)
- Drag a Create Record element alongside the Create Event element
- Fill out the necessary fields
- Connect the Create Event element to the Create Task (or Create Case) element
Updating a Case
If you add a step in the flow to create a case and an event is rescheduled and you want to relate that rescheduled event to the case, then you'll want to add an Update Record element after the Case? Decision element and fill in the necessary fields:
Creating a Contact
By default, the flow will create a new lead whenever a Calendly meeting is scheduled. To create a contact instead, you can:
- Navigate to the Create Event Flow (see above)
- Modify the pre-existing Create Record, Create New Lead element of the flow.
- Change the values of the fields so that a new Contact is created.
- Re-map all of the fields (FirstName, LastName, Email, Phone, etc) to the corresponding Calendly values (dictated as {!NewCalendlyAction__c})
Note: Custom fields in Salesforce can be related to the responses to Calendly custom questions 1-4 using {!NewCalendlyAction.CustomResponse1__c} through {!NewCalendlyAction.CustomResponse4__c}, respectively.
Updating a Contact
By default, the flow will check if a contact already exists in Salesforce. If a contact exists, then you can update the contact record with {!NewCalendlyAction} values.
- Navigate to the Create Event Flow (see above)
- Add an Update Record, Update Contact element to the flow
- Add necessary fields for update, within the Update Record, Update Contact element
- Delete the connector from Contact? Decision element
- Connect the Contact? Decision element with the new Update Contact element
- Connect the Update Contact element to the Get Record, Find Publisher element
Filtering which events trigger the Flow
You can modify the OnCalendlyActionCreated process via Process Builder to trigger the default (or customized flow) based on certain criteria such as Event Type name or Calendly User Name (listed in Process Builder as Event Primary Publisher Name.) To only trigger the flow for certain events, you can:
- Type in process in the Quick Find Box via the Setup page
- Navigate to "Process Builder" under Create>Workflows & Approvals
- Open the OnCalendlyActionCreated process
- Click on the Invitee.Created diamond
- Add another row/condition where "Event Type Name" equals the Calendly Event Type Name
- Save and Activate
For the example below, the flow will only run for events named "Discovery Call."
Note: You may have to clone the process if it's already active and modify the duplicate process.