Sync leads from SQL Server to Salesforce every 5 minutes

Recipe ToolsMarketingDatabaseCRM

What it does

Every 5 minutes, this automation queries the staging table in SQL Server and retrieves matching lead details in Salesforce. The batch process keeps lead records synchronized between the database and Salesforce without manual intervention.

Who it's for

Sales operations teams who need to keep lead records current across SQL Server and Salesforce without manual updates.

How teams use this

Keep lead data synchronized regularly

Run the sync every 5 minutes so leads created or updated in SQL Server appear in Salesforce without delay. Sales teams always see the latest information.

Sync only qualified leads to Salesforce

Filter the SQL Server query to select only leads that meet qualification criteria before syncing to Salesforce. This reduces noise and keeps the pipeline focused.

Expand sync to include contacts and accounts

Add queries for contact and account tables in SQL Server and set mappings to Salesforce objects. The same 5-minute schedule applies to all three object types.

How it works

  1. Run on a 5-minute schedule. This automation starts every 5 minutes so lead data stays fresh and synchronized between systems.
  2. Query the SQL Server staging table. Select rows from the stg_Lead table in SQL Server to retrieve lead records that need to be synced to Salesforce.
  3. Retrieve lead details in Salesforce. Get details of specific leads in Salesforce so the records match what is stored in the SQL Server database.