Sync Salesforce contacts to Mailchimp weekly
Recipe ToolsMarketingCRM
What it does
When the schedule triggers every Sunday at 9 PM, this automation queries Salesforce for contacts and adds them to Mailchimp. It logs errors and updates each contact record in Salesforce when the sync finishes.
Who it's for
Marketing operations teams who need to keep their Mailchimp newsletter list in sync with Salesforce contacts on a weekly cadence.
How teams use this
Keep newsletter list current weekly
Run the sync every Sunday evening so new Salesforce contacts are automatically added to Mailchimp. The team does not need to manually export or import the list.
Sync to a different Mailchimp audience
Point the automation to another Mailchimp audience or segment instead of the newsletter. The schedule and Salesforce query stay the same.
Add a filter for contact status
Include a condition in the Salesforce query to only sync contacts with a specific status or field value. This ensures only qualified contacts reach Mailchimp.
Notify on sync errors
Add a step to send an alert to a Slack channel when errors are logged to the lookup table. The team can then review and fix bad records.
How it works
- Start sync on Sunday evening. Every Sunday at 9 PM, this automation runs to sync contacts from Salesforce to Mailchimp.
- Query Salesforce for contacts. Search Salesforce using a SOQL query to retrieve the contacts that need to be added to the newsletter audience.
- Check and add to Mailchimp. For each contact, search Mailchimp for the subscriber. If not found, add them to the newsletter audience. If an error occurs, log it and skip that record.
- Update contact records. Update each contact in Salesforce to mark the sync as complete and record the outcome of the Mailchimp add.