Sync MySQL ads table to Salesforce accounts
DeveloperCRMMarketingSales
What it does
When a row is added or updated in the MySQL ads table, this automation searches Salesforce for a matching account by email. It creates a new account if none exists, or updates the existing one with facility and feature data from MySQL.
Who it's for
Sales operations teams who need to keep Salesforce accounts in sync with MySQL without manual entry.
Apps used
How teams use this
Onboard new customers from ads platform
When a new row appears in the ads table, the account is automatically created in Salesforce with email and facility details so the sales team can start engaging without manual data entry.
Keep account details current
When facility or feature data changes in MySQL, the corresponding Salesforce account is updated automatically so the sales team always sees the latest information.
Sync to a different Salesforce object
Extend this automation to create or update opportunities instead of accounts by adding the opportunity object type and mapping the facility data to opportunity fields for deal tracking.
How it works
- Monitor the ads table. A new row is added to or an existing row is updated in the MySQL ads table.
- Fetch related user and facility data. Retrieve rows from the MySQL users table and ad_facilities table to gather the email, facility details, and feature information needed for the Salesforce account.
- Search for matching account. Search Salesforce for an existing account with the same email address from the MySQL user record so duplicates are not created.
- Create or update the account. If no account is found, create a new Salesforce account with the user email, facility, and feature data. If an account exists, update it with the latest information from MySQL.