Sync Salesforce contacts to Mailchimp weekly

Recipe ToolsMarketingCRM

What it does

When this automation runs every Sunday at 9 PM, it queries Salesforce for contacts and syncs new ones to Mailchimp. Each contact is checked against Mailchimp, added if missing, and the Salesforce record is updated with sync status.

Who it's for

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

How teams use this

Keep Mailchimp audiences current weekly

Run the sync every Sunday night so new Salesforce contacts are automatically added to Mailchimp without manual work. The team wakes up Monday with an updated audience.

Sync only primary contacts to Mailchimp

Filter the Salesforce query to include only contacts marked as primary so secondary contacts are not synced. This keeps the Mailchimp audience focused on decision makers.

Run the sync on a different schedule

Change the clock trigger to run daily or twice weekly instead of once a week so Mailchimp stays more current with Salesforce. The rest of the automation stays the same.

Add custom fields to synced subscribers

Include additional Salesforce contact fields like company or title when adding subscribers to Mailchimp so the audience has richer data. Set those fields in the add subscriber step.

How it works

  1. Run the sync weekly. This automation runs every Sunday at 9 PM to keep Mailchimp audiences current with Salesforce contacts.
  2. Query Salesforce for contacts. Search Salesforce using a query to find contacts that match the sync criteria, then process each one in a batch.
  3. Check if subscriber exists. Search Mailchimp for each contact to see if that subscriber is already in the audience, so duplicates are not added.
  4. Add new subscribers to Mailchimp. When a contact is not found in Mailchimp, add that subscriber to the audience and log any errors to the lookup table.
  5. Update the contact record. Mark the Salesforce contact with the sync status so the team knows the subscriber was added to Mailchimp.