Sync Salesforce contacts to Mailchimp every 3 days
Recipe ToolsMarketingCRM
What it does
When the schedule triggers every 3 days at 8 PM, this automation searches Salesforce for records matching a SOQL query. For each record with a subscriber ID, it updates or adds the subscriber in Mailchimp and logs any errors to a lookup table.
Who it's for
Marketing operations teams who maintain a Mailchimp audience from Salesforce contacts on a regular schedule.
How teams use this
Keep Mailchimp audience synced with Salesforce
Run the sync every 3 days so Mailchimp subscribers always reflect the latest Salesforce contact records without manual updates from the team.
Sync only contacts in a campaign
Change the SOQL query to filter for contacts in a particular campaign or with a certain status. Only those records will sync to Mailchimp on the schedule.
Add custom fields to subscriber records
Extend the update step to include additional Salesforce fields such as company name or job title. Set those fields on each synced subscriber in Mailchimp.
Alert team when sync errors exceed limit
Add a condition to check the Error lookup table after each run. Include a notification step so the team can investigate if errors reach a threshold.
How it works
- Run every 3 days at 8 PM. This automation starts on a schedule, running every 3 days at 8:00 PM to keep the Mailchimp audience current with Salesforce records.
- Search Salesforce with SOQL. Search Salesforce for records matching the specified SOQL query to identify contacts ready to sync to Mailchimp.
- Update or add each subscriber. For each Salesforce record with a subscriber ID, update that subscriber in Mailchimp or add them if they do not already exist.
- Log errors to lookup table. When an error occurs during the sync, add an entry to the Error lookup table so the team can review what failed and investigate.