Create SQL Server row when Salesforce lead arrives
CRMMarketingSalesDeveloper
What it does
When a new lead is created in Salesforce, this automation checks that the lead has both an email and full name. If both fields are present, it inserts a row into the SQL Server Leads table so the data syncs to the database.
Who it's for
Sales operations teams who need Salesforce leads automatically recorded in SQL Server.
Apps used
How teams use this
Sync qualified leads to the database
New Salesforce leads with complete contact information automatically create records in SQL Server so the sales team has a single source of truth for lead data across systems.
Prevent incomplete records from syncing
The automation only inserts rows when email and full name are both present, so incomplete leads do not clutter the SQL Server database with partial information.
Add phone and company to the sync
Extend the condition to also check that phone number and company name are present before inserting the row, so only fully qualified leads reach SQL Server.
Route leads by source to different tables
Modify the automation to filter and insert rows into different SQL Server tables based on the lead source field, so inbound and partner leads are stored separately for reporting.
How it works
- Monitor for new Salesforce leads. A new lead is created in Salesforce with a display name, email, and other details.
- Verify email and full name. Check that the lead record from Salesforce contains both an email address and a full name before proceeding to insert the row into SQL Server.
- Insert row in SQL Server. Add a new row to the dbo.Leads table in SQL Server with the lead data from Salesforce so the database stays current.