Synchronize Salesforce Leads with Marketo Leads > Using the Synchronize Salesforce Leads with Marketo Leads recipe > Step 4: Configure and publish the process
  

Step 4: Configure and publish the process

Configure the Secure Agent and publish the process.
    1Open the Synchronize Salesforce Leads with Marketo Leads using CDC process.
    2On the Start tab of the Start step, select Event in the Binding field.
    3In the Event Source Name field, select the event source that you added in the SalesforceCDC connection.
    4From the Run On list, select the Secure Agent.
    5Save and publish the process.
When a lead is created or updated in Salesforce, a Salesforce Change Data Capture event triggers the process. The process receives a message from Salesforce with an event. The process extracts the lead ID and retrieves full information based on the lead ID. The process then checks whether the record contains an email. If the email is missing, the process displays an error. Otherwise, the process performs a search in the database using the custom Salesforce ID field in Marketo. If the Salesforce ID exists in Marketo, the lead is updated. Otherwise, a new record is created and the lead details are synchronized with a Marketo lead.