Sync Salesforce cases to SQL Server

CRMMarketingSalesDeveloper

What it does

When a case is created or updated in Salesforce with a status containing Progress, this automation searches SQL Server for that case. If it does not exist, the case and account details are inserted into the database.

Who it's for

Operations teams who need Salesforce cases synced to an on-premises SQL Server database without manual entry.

How teams use this

Keep SQL Server in sync with Salesforce

Cases with Progress status flow automatically to SQL Server so the on-premises database stays current without manual updates or duplicate entries.

Sync cases to a reporting database

Route cases to a different SQL Server table or database used for analytics and reporting instead of the operational one.

Filter cases by additional status values

Add cases with other status values like Escalated or On Hold by including those conditions in the automation so more cases sync to SQL Server.

Include custom fields in the database record

Set custom Salesforce fields in the SQL Server row so the database captures priority, category, or other case attributes alongside the standard fields.

How it works

  1. Monitor cases with progress status. A new or updated case in Salesforce with a status containing Progress starts this automation.
  2. Search SQL Server for the case. Query the dbo.SFDCCases table in SQL Server to check if a row with that case number already exists in the database.
  3. Retrieve the related account. Fetch the account information linked to the case from Salesforce so the full context is available for the database record.
  4. Insert the case into SQL Server. Add a new row to the dbo.SFDCCases table with the case number, status, and account details from Salesforce when the case is not found.
  5. Mark case as synced. Update the case in Salesforce to indicate it has been synced to the SQL Server database.