Sync Salesforce accounts to ServiceNow facilities

CRMMarketingSalesIT HelpdeskDeveloper

What it does

When a new account is created in Salesforce, this automation searches ServiceNow for that account. If it does not exist, the automation creates a facilities record in ServiceNow and logs the account in SQL Server.

Who it's for

Operations teams who need Salesforce accounts synced to ServiceNow facilities without manual entry.

How teams use this

Sync new accounts to facilities

When someone creates an account in Salesforce, the automation checks ServiceNow and adds a facilities record if one does not exist. The team sees the account in both systems right away.

Route accounts by region

Extend the automation to filter accounts by region before creating the facilities record. Only accounts in certain regions sync to ServiceNow, and others stay in Salesforce only.

Audit syncs in a data warehouse

The SQL Server log captures every account that syncs so the team can audit the sync history and spot gaps. Finance and Operations can both see what moved between systems.

How it works

  1. Monitor for new accounts. A new account is created in Salesforce and this automation starts immediately to sync the account to ServiceNow.
  2. Search for the account in facilities. Search the u_facilities table in ServiceNow to check if that account already has a facilities record so duplicates are not created.
  3. Create the facilities record. If no record is found, create a new row in the u_facilities table in ServiceNow with the account details from Salesforce.
  4. Log the account in SQL Server. Insert the account row into the dbo.Account table in SQL Server so the sync is recorded for audit and reporting purposes.