How to filter the Salesforce flow to run on certain conditions

Example use case

You've connected Salesforce to your Calendly account. You want to sync event data for your Sales team — but not for users outside of Sales. You can do this by modifying your Salesforce flow to run only for certain event types or users.

Editing the flow vs. the process

Your setup depends on which package version you’re using.

  • If you're on Version 2, you’ll edit the flow directly.
  • If you're on Version 1.11, you'll use the Process Builder.

To check your version, visit the Salesforce Integration page in Calendly.

Version 2 Version 1.11

Adjust the flow to run for certain events or users

  1. In Salesforce Setup, search for Flows. Select Flows.
    • If you haven't customized the CreateEventTemplate before, you'll need to create a new flow based on the template. To do so, you can open the CreateEventTemplate, customize it directly, then Save as. Saving it will create a new flow. You can call the new flow something like "CreateEvent."
    • If you've already customized the CreateEventTemplate flow, then open your customized flow.
  2. In the beginning part of the flow, locate Object: CalendlyAction, and select Edit.
    CalendlyAction_edit.png
  3. Under Condition Requirements, select the conditional logic you'd like the flow to follow (All Conditions are Met (ALL), Any Condition is Met (OR), or Custom Condition Logic is Met).
  4. Under Field, select Calendly__EventTypeName__c or Calendly__EventPrimaryPublisherEmail__c,  depending on if you want to filter the flow by Calendly event type or by user. 
  5. Under Field value, enter the event type name exactly as it appears in Calendly, or the Calendly user's email, depending on what field you selected in the previous step. 
    sf__field_value_condition.png
  6. Select Done.
  7. To save your customized flow, select Save
  8. To activate your customized flow, select Activate. Note: you will also need to deactivate the CreateEventTemplate, so you don’t have duplicate events in Salesforce.