Use merge fields in automations to link managed event URLs with Salesforce users, ensuring leads schedule specific events faster.
Customizing the flow
The MapCalendlyLinkTemplate flow is triggered by profile links and maps these links to Salesforce users by default. However, the flow can be customized to sync managed event links. You can customize the flow using the options discussed below.
To learn more about the MapCalendlyLinkTemplate flow and how Calendly syncs profile and managed event links to Salesforce, check out this Help Center article: Syncing Calendly links to Salesforce
If you don't plan on referencing profile links via merge fields and you only have one managed event link you want to leverage in automations, this is the ideal approach.
- Locate and open the latest version of the MapUserCalendlyLink flow.
- Select Edit to edit the trigger.
- Update the Calendly_Type_c to equal ManagedEventType.
- If you have multiple managed events in your organization, to map the correct event to the Salesforce user, select + Add Condition.
- Set the Calendly_Name_c field to equal the name of your managed event.
- Select Done.
- Save the flow as a new version and activate the new version.
- Note: To learn more about how to save a flow as a new version, check out this Help Center article: Calendly Salesforce package v2 post-install steps
- To test, navigate to your Salesforce integrations page and select Sync.
If you want to share different managed event links at different times depending on the lifecycle stage of the customer or lead, this is the ideal approach.
- Ensure you have a field on the user object per link you want to reference as a merge field. The Calendly Salesforce package creates one field by default, Calendly Link. If you need to add more:
- From Set up, select Object Manager.
- From the list of labels, select User.
- Select Fields & Relationships.
- Next to the Quick Find search bar on the right-hand side, select New.
- For Data Type, choose Text and select Next.
- Note: You can store the links as a URL field, but most of our related Help Center content provides steps and formulas that work with a Text field, not a URL field.
- For Field Label, name the field.
- For Length, set the max length (255) and select Next.
- Make any changes to field-level security you may require and select Next.
- Add the new field to your preferred layouts and select Save.
- Locate and open the latest version of the MapUserCalendlyLink flow.
- Select Edit to edit the trigger.
- Set the Condition Requirements to None from the drop-down menu and select Done.
- In the User active branch after the Found User Active? decision, add a Decision element. This is where you will conditionally update fields on the user profile depending on the type of link that was synced to Salesforce.
- Create an Outcome branch for each type of link you want to map to a specific field on the user record.
- If you want to map profile links, make sure the Type field from the Calendly Link record equals profile.
- For each managed event link you want to map, make sure the Type field from the Calendly Link record equals ManagedEventType and the Name field equals that specific managed event name.
- If you want to map profile links, make sure the Type field from the Calendly Link record equals profile.
- Label your Default Outcome.
- Click on the Update User Profile Link element and select Cut Element.
- Click on the (+) symbol for one of your decision paths where you want to map the link value to a field on the user record. This will put the Update Records element on that path.
- Click the (+) symbol for every other path except the default outcome path, and choose to paste one element.
- For each Update Records element, select to edit to ensure that link is being mapped to the correct field on the User object. For each element, select Done.
- Save your flow as a new version and Activate the new version.
If you want to reference these links as a record owner's availability, follow the steps for Creating a custom formula for each of your managed event links.