Update the contact/lead status based on the Engage flow status
Contacts and leads can be added to an Engage flow and the Engage fields can be exported and displayed in the contact and lead in Salesforce. As the contact is moved through the flow, the status of the contact in the flow changes, and you may to update the status of the contact in Salesforce. Updating the status in Salesforce can be automated via a Salesforce flow.
This article explains how to create a flow that updates the contact and lead status based on the Engage flow status.
Note that:
-
This article describes the flow for updating a lead object. You need to set up a separate flow to update the contact.
-
Salesforce statuses are customized by each organization. You must adjust this flow to suit your CRM setup.
You must be a Salesforce admin to define the flow in Salesforce:
-
In Salesforce, go to Setup > Process Automation > Flows and click New flow.
-
Select Record - Triggered Flow.
-
Fill in the form as follows:
-
Object: Lead
-
Configure Trigger: A record is updated
-
Set Entry Conditions:
-
Condition requirement: Formula Evaluates to True
-
Formula: ISCHANGED(Gong__Flow_Status__c)
-
-
You now need to configure the step where the lead record is updated in Salesforce with the new status:
-
In the flow builder, click the + sign to add a step to the flow and select Update Records. This triggers this step when the Engage Flow Status field in the lead record is updated
-
Configure the step as follows:
-
Find the records to update and set values: Use the lead record that triggered the flow
-
Filter conditions: None - Always Update Record
-
-
In the Toolbox, create a new formula resource:
-
Give the API Name a meaningful name
-
Data type: Text
-
Formula
CASE({!$Record.Gong__Flow_Status__c}, "Active", "<Lead status>, "Paused", "<Lead status>", "Opted Out", "<Lead status>", "Removed", “<Lead status>”, "Completed","<Lead status>", "Removed Response", "<Lead status>", "N/A")
For example:
CASE({!$Record.Gong__Flow_Status__c}, "Active", "Contacted", "Paused", "Not Sure", "Opted Out", "Not Interested", "Removed", "Unqualified", "Completed","Converted", "Removed Response", "Discontinued", "N/A")
-
-
Add the new formula to the Value for the status field.