Create Salesforce Opportunity from MySQL Ads table

DeveloperCRMMarketingSales

What it does

When a new or updated row appears in the Ads table in MySQL, this automation searches Salesforce for a matching Account. It creates the Account and Opportunity when they do not exist, so sales data stays in sync without manual entry.

Who it's for

Sales operations teams who need Salesforce Accounts and Opportunities created automatically from MySQL ad data.

How teams use this

Sync ads to Salesforce pipeline

New ads in MySQL automatically create Accounts and Opportunities in Salesforce so sales teams see all prospects without manual data entry or spreadsheet work.

Update Opportunities when ads change

When an ad record updates in MySQL, the Opportunity in Salesforce reflects those changes so the pipeline stays accurate and sales forecasts remain reliable.

Include ad features in Opportunity details

Add the ad features from MySQL as a field or note on the Salesforce Opportunity so sales reps see the full offer details without switching systems.

Route Opportunities by facility type

Filter the Opportunities created by facility type so they route to the right sales team or queue based on the ad category in MySQL.

How it works

  1. Monitor the Ads table. A new or updated row in the Ads table in MySQL starts this automation so Salesforce stays current with ad records.
  2. Fetch related user and facility data. Search the users and ad_facilities tables in MySQL to gather the customer and facility details needed for the Salesforce records.
  3. Check for existing Account. Search Salesforce for an Account that matches the ad data so a duplicate record is not created.
  4. Create Account if missing. When no matching Account exists in Salesforce, create one with the customer and facility details from MySQL.
  5. Create or link Opportunity. Search for an Opportunity in Salesforce by ad ID, then create one if it does not exist so the sales pipeline is complete.