Sync new MySQL rows to Salesforce accounts and opportunities

DeveloperCRMMarketingSales

What it does

When a new row appears in a MySQL ads table, this automation searches Salesforce for a matching account by email. It creates an account and opportunity in Salesforce when no match is found, so sales data stays in sync across systems.

Who it's for

Sales operations teams who need MySQL ad data reflected in Salesforce without manual entry.

How teams use this

Sync ad campaigns to sales pipeline

New ad records in MySQL automatically become Salesforce accounts and opportunities so the sales team sees fresh leads without leaving their CRM. The flow runs on every new ads table row.

Route opportunities by ad facility

Extend the automation to check the ad_facilities table and assign the new opportunity to a sales rep based on facility type. Add a lookup step and assignment logic after the opportunity is created.

Enrich accounts with ad features

Include ad_features data from MySQL in the Salesforce account record so sales reps see the full picture of what the prospect is interested in. Map feature fields to custom account fields.

How it works

  1. Monitor for new ads. A new row is added to the ads table in MySQL. This automation retrieves related data from the users and ad_facilities tables in MySQL to prepare for the Salesforce sync.
  2. Search for matching account. Search Salesforce for an account with an email that matches the one from the MySQL users table to avoid duplicate records in the CRM.
  3. Create account and opportunity. When no matching account is found, create a new account in Salesforce with the email and details from MySQL, then create a linked opportunity for the sales team.