Don’t want to sync everything in your Dynamics CRM into Marketo? Don’t worry! Marketo allows you to set up a sync filter and sync only part of your records.
To set up a Dynamics sync filter:
You must make these changes in Dynamics CRM, not your database or Marketo.
Marketo looks for this field during the automatic background sync and determines which records to sync over based on this logic:
|Field Value||Sync to Marketo?|
|Field doesn’t exist||Yes|
|Field is empty||Yes|
|Field has value Yes||Yes|
|Field has value No||No|
The only way to tell Marketo to skip a record is to set the field value explicitly to be No. Marketo still syncs records over even if the field values are empty.
Install the latest version of the Marketo Plug-in (184.108.40.206 or later). Go to Marketo > Admin > Microsoft Dynamics > Download Marketo Solution.
Log into Dynamics CRM. Click Settings and then click Customizations.
Click Customize the System.
Click next to Entities.
Click next to Lead and select Fields. Then click New.
Enter SyncToMkto in the Display Name field and select Two options as the Data Type. Then click Save and Close.
Choose any display name for this field, but the Name field must be exactly new_synctomkto. You must use new as the default prefix. If you’ve changed the default, go here to reset the default prefix for the custom field names. You can change it back after you’ve created the new fields.
If you have asynchronous workflow set up, the record gets the default SyncToMkto value you set up in the field, and gets the correct value a few seconds later when the workflow finishes running. If the default value is set to Yes, those records will be created in Marketo and then become stale. Use No as the default value to avoid this.
Repeat this process and create the SyncToMkto field for any other entities you wish to limit the sync on, such as contact, account, opportunity and custom entities.
Even if you’ve already done your initial sync, go in and select the fields to be synced with Marketo.
Go to Admin and select MIcrosoft Dynamics.
Click Edit on Field Sync Details.
Scroll down to the field and check it. The actual name must be new_synctomkto but the Display Name can be anything. Click Save.
Great, Now you’ve enabled the sync filter for Marketo.
You can always manually assign a value to the SyncToMkto fields for your records. But why not take advantage of the power of a Dynamics Workflow and auto-assign a value to the SyncToMkto field when a record is created or updated?
You can’t do this on the database level. It must be done in the CRM manually or using a workflow.
A Dynamics workflow works only on new records created going forward, not on historical data. Use a batch update to move over existing records.
Go to Dynamics CRM. Click Settings then click Processes.
Enter a name for the workflow, and select Workflow as the category and Lead as the Entity. Then click OK.
Create rules to assign a true or false value to the SyncToMkto field based on your organization’s preference. Click Save and Close.
Define a Default Action after you click Add Step to add a Check Condition. This sets the records that you don’t want to sync to No. Otherwise, they will sync.
Select the workflow and click Activate.
See Custom Sync Filter Rules for an Email Address to set up rules to sync only records for people with email addresses.
Here are some implementation details we thought you should know:
Start a Sync Operation
When the SyncToMkto value changes from No to Yes, Dynamics notifies Marketo immediately to start syncing this record. If the record already exists, Marketo updates it. Otherwise, Marketo creates the record.
Create [StartSync] operation is added to the Marketo Log when this happens.
Stop a Sync Operation
When a record changes its SyncToMkto value from Yes to No, Marketo is notified to stop syncing this record. However the record is not deleted, instead, it stops getting updates and becomes stale.