By default, the Salesforce flow matches an invitee to an existing record but doesn't update it. Follow these steps to update details like contact info.
To read more about default flow behavior, view Default behavior of the Salesforce package.
For example, you can:
- Update a contact with the phone number an invitee included on the Calendly booking form.
How to update a contact in Salesforce
Note: These steps are for updating a contact. However, you can modify them to update the record of your choice. If you're unsure what version you currently use, visit your Salesforce integrations page to confirm your version.
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 Decision element to your flow
- From the Toolbox on the left-hand side, under Data, drag a Decision element to the flow, and drop it next to the Subflow: Get Event Attendee Template element.
- Under Edit Decision, at Label, enter Is Contact?
- Under Outcome Details, at Label, enter Contact Email Match
-
Under Condition Requirements to Execute Outcome, keep All Conditions Are Met (AND)
- At Resource, enter WhoRecordId
- Operator, enter Starts With
-
Value, enter 003
- Select Done.
Step 3 – Add an Update Records element to your flow
- From the Toolbox on the left-hand side, under Data, drag an Update Records element to the flow, and drop it next to the Decision: Contact Matched? element.
- Under New Update Records, at Label, enter Update Contact.
- At How to Find Records to Update and Set Their Values, select Specify conditions to identify records, and set fields individually.
- Under Update Records of This Object Type, at Object, select Contact.
- Under Filter Contact Records, select Conditions are Met.
- For the condition:
- At Field, enter ContactId
- At Operator, enter Equals
- At Value, enter WhoRecordId
- Under Fields Values for the Contact Records, include the fields and value you want to update with Calendly information. For example, if your first question on your Calendly booking form is the invitee's phone number:
- At Field, enter Phone
- At Value, select Calendly__CalendlyAction__c, then select CustomResponse1
- Select Done.
Step 4 – Connect the elements
- Within the flow, delete the connector between the Decision: Contact Matched? and Get Records: Find Publisher elements.
- Connect the Decision: Contact Matched? element to the new Update Records: Update Contact element.
- Connect the Decision: Is Contact? element to Update Records: Update Contact element.
- Connect the Update Records: Update Contact element to the Get Records: Find Publisher element.
-
Connect the Default outcome from Decision: Is Contact? To Get Records: Find Publisher element.
Step 5 – 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.
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 an Update Records element to your flow
- From the Toolbox on the left-hand side, under Data, drag an Update Records element to the flow, and drop it next to the Decision: Contact Matched? element.
- Under New Update Records, at Label, enter Update Contact.
- At How to Find Records to Update and Set Their Values, select Specify conditions to identify records, and set fields individually.
- Under Update Records of This Object Type, at Object, select Contact.
- Under Filter Contact Records, select Conditions are Met.
- For the condition:
- At Field, enter ContactId
- At Operator, enter Equals
- At Value, enter WhoRecordId
- Under Fields Values for the Contact Records, include the fields and value you want to update with Calendly information. For example, if your first question on your Calendly booking form is the invitee's phone number:
- At Field, enter Phone
- At Value, select Calendly__CalendlyAction__c, then select CustomResponse1
- Select Done.
Step 3 – Connect the elements
- Within the flow, delete the connector between the Decision: Contact Matched? and Get Records: Find Publisher elements.
- Connect the Decision: Contact Matched? element to the new Update Records: Update Contact element.
- Connect the Update Records: Update Contact element to the Get Records: Find Publisher 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.
Steps
- From your setup page locate the Quick Find / Search box in the top left-hand corner, then type Flows.
-
Under Build>Workflows & Approvals, 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 an Update Records element to the flow and drop it next to the Contact Matched? Decision element.
-
At Label, enter Update Contact.
-
At How to Find Records to Update and Set Their Values, select Specify conditions to identify records, and set fields individually.
-
At Filter Contact Records, select Conditions are Met. Then,
-
At Field, enter OwnerId
-
At Operator, enter Equals
-
At Value, enter {!WhoRecordId}
-
-
Set Fields Values for the Contact Records, add fields from Salesforce you want to update with Calendly information. For example, add the Phone field and set the Value to {!NewCalendlyAction.CustomResponse1__c} if your first custom question on your Calendly event scheduling page asks for the invitee's phone number. Then select Done.
-
Within the flow, delete the connector between the Contact Matched? Decision and Find Publisher, Get Records elements.
-
Connect the Contact Matched? Decision element to the new Update Contact, Update Records element. Then connect the Update Contact, Update Records element to the Find Publisher, Get Records element.
-
To save the flow, select Save. Select Save As to save the modified version of the flow. To activate the flow, select Activate.