Sync Salesforce accounts to MySQL

CRMMarketingDatabaseRecipe Tools

What it does

When a Salesforce account is created or updated, this automation inserts a batch of rows into MySQL. If an error occurs, someone receives an email so the sync can be investigated.

Who it's for

Data and analytics teams who need Salesforce accounts synced to MySQL for reporting.

How teams use this

Keep the data warehouse in sync

Accounts created or updated in Salesforce flow into MySQL automatically so reports always reflect the latest customer data. No manual exports or imports are needed.

Alert ops when sync fails

If the batch insert encounters an error, someone gets an email right away so the sync can be resumed before reports go stale. The team knows exactly when to investigate.

Sync only accounts in a region

Add a condition to filter Salesforce accounts by region before inserting them into MySQL. Only the accounts that match the filter are synced to the database.

Include email in the sync

Set the email field from Salesforce accounts to map into the MySQL table so contact information is available in reports. The batch insert includes one more column.

How it works

  1. Monitor new or updated accounts. Watch Salesforce for accounts that are created or updated, and batch them for processing.
  2. Insert accounts into MySQL. Insert the batch of Salesforce accounts into the r7 table in MySQL so the data warehouse stays current.
  3. Send error notification. If the insert fails, send an email so someone knows the sync did not complete and can fix the issue.