Sync Salesforce contacts to Mailchimp audience weekly
Recipe ToolsMarketingCRM
What it does
When the scheduled time arrives each week, this automation queries Salesforce for contacts and syncs their primary email to Mailchimp. It updates existing subscribers, logs issues, and marks sync status in Salesforce.
Who it's for
Marketing operations teams who maintain a Mailchimp audience from Salesforce contact records.
How teams use this
Keep Mailchimp audience in sync with Salesforce
Run the sync every week so Mailchimp subscribers match the primary contacts in Salesforce. The audience stays current without manual uploads or exports.
Sync additional contact fields to Mailchimp
Add phone, company, or other fields to the database query so Mailchimp subscribers have richer data. Map those fields to Mailchimp merge tags in the update step.
Route sync errors to a Slack channel
When an error is logged, send a notification to a Slack channel so the team can investigate failed syncs right away instead of checking the job report later.
How it works
- Run the sync weekly. Every Sunday at 7 PM, this automation starts and queries Salesforce for contacts that need to sync to Mailchimp.
- Query Salesforce contacts. Search Salesforce for all contacts with a primary email address ready to add or update in the Mailchimp audience using a database query.
- Search or update Mailchimp subscribers. For each contact, search Mailchimp for a matching subscriber by email. If found, update the subscriber. If not found, add the contact to the audience.
- Log sync status and errors. Update the contact record in Salesforce with the sync result. If an error occurred, add an entry to the error lookup table and log the issue to the job report.