Sync Salesforce contacts to Mailchimp weekly

Recipe ToolsMarketingCRM

What it does

When this automation runs every Sunday at 10 PM, it queries Salesforce using SOQL to find contacts matching specified criteria. For each contact found, it checks Mailchimp and adds those not yet subscribed to the audience.

Who it's for

Marketing operations teams who need to keep a Mailchimp audience in sync with Salesforce contacts on a regular schedule.

How teams use this

Keep Mailchimp audience in sync weekly

Run the sync every Sunday so new Salesforce contacts are added to Mailchimp automatically. The team does not need to export or import lists manually.

Sync only talent contacts to audience

Filter the SOQL query to include only contacts with a talent designation so the Mailchimp audience contains only that segment from Salesforce.

Add custom field to synced subscribers

Include a Salesforce custom field in the subscriber record added to Mailchimp so the audience has richer data for segmentation and targeting.

Track sync errors in dashboard

Log failed syncs to the lookup table so the team can monitor which contacts did not add to Mailchimp and investigate issues.

How it works

  1. Run on a weekly schedule. This automation starts every Sunday at 10 PM so contacts are synced to Mailchimp on a consistent cadence.
  2. Search Salesforce with SOQL query. Query Salesforce using SOQL to find all contacts that meet the criteria for the Mailchimp audience, then process each result in a batch.
  3. Check if contact exists in Mailchimp. For each contact from Salesforce, search Mailchimp to see if that subscriber is already in the audience before adding.
  4. Add new subscribers to Mailchimp. When a contact is not found in Mailchimp, add that subscriber to the audience so the list stays current with Salesforce.
  5. Update contact and log errors. Mark the Salesforce contact to show it has been synced to Mailchimp, and log any errors to the lookup table for review.