By default, the flow will create an event record whenever a meeting is scheduled. However, you can modify the Create Record: Create Event element to create a task or case in addition to an event.
How to create a task or case in Salesforce
Step 1: Locate your flow
- 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.
Step 2: Add a Create Records element to your flow
- From the Toolbox on the left-hand side, under Data, drag a Create Records element to the flow, and drop it to the right of the Create Records: Create Event element.
- Under New Create Records, at Label, enter Create Task (or Create Case).
- At How to Set the Record Fields, select Use separate resources, and literal values.
- At Create a Record of This Object, under Object, enter Task (or Case).
- At Set Field Values for the Task:
- At Field, enter Subject
- At Value, select Calendly__CalendlyAction__c, then select Event Subject.
- Select + Add Field
- At Value, select WhatID, then select the value WhatRecordID
- Select + Add Field
- At Value, select WhoID, then select the value WhoRecordID
- Check the box Manually assign variables.
- Under Store Task ID in Variable, at Variable, select WhoRecordId.
- Select Done.
Step 3: Connect the elements
- Within the flow, connect the Create Records: Create Event element to the new Create Records: Create Task (or Create Case) element.
Step 4: Save and activate your flow
- To save the flow, select Save. Select Save As to save the modified version of the flow.
- To activate the flow, select Activate. Note: you will also need to deactivate the CreateEventTemplate, so you don’t have duplicate events in Salesforce.
- From your Setup, locate the Quick Find / Search box, then type flows.
- Select Flows.
-
At Flows, select Open for the CreateEvent flow.
Note: Your organization's visual builder may be viewed in the Classic or Lightning experience. Functionality remains the same. - From the Toolbox on the left-hand side, and under Data, drag a Create Records element to the flow and drop it next to the Create Event element.
- At Label, enter Create Task (or Create Case).
- At How to Set the Record Fields, select Use separate variables, resources, and literal values.
- At Create a Record of This Object and under Object, enter Task (or Case).
- At Field, enter Subject.
- At Value, enter {!NewCalendlyAction.Event Subject__c}.
- At Variable, select {!WhoRecordId}, then select Done.
- Select the connector of the Create Event element and connect it to the new Create Task (or Create Case) element.
- To save the flow, select Save. Select Save As to save the modified version of the flow.
- To activate the flow, select Activate.