ServiceNow Documentation

Pod ownership

Who to ask
Product Manager
David Halford
Overview

The ServiceNow Connector moves records between Fusion and a customer's ServiceNow instance through the ServiceNow REST API. Most customers use it to bring CMDB applications, components and their dependencies into Fusion for continuity and IT disaster recovery planning, so the two systems describe the same IT estate.

Resilience teams plan around applications, infrastructure and dependencies that IT already records in the ServiceNow CMDB. Keying them into Fusion by hand is slow and drifts out of date. The connector runs inside Fusion: an administrator maps ServiceNow tables and columns to Fusion objects and fields, then sets up sync jobs that pull records in, push records out, or both, on a schedule or on demand. Nothing has to be installed in ServiceNow; it needs a ServiceNow user with access to the tables involved.

Outcomes

  • Fewer manual updates, and IT and resilience teams work from the same asset data.
  • Applications, components and their dependencies arrive in Fusion ready for planning.
  • Plan details kept in Fusion (for example, recovery objectives) can be sent back to ServiceNow.
  • Disaster recovery procedure steps can be pushed to ServiceNow as tasks, and their updates pulled back.

How it works

Everything runs in Fusion as Salesforce batch jobs that call the ServiceNow REST Table API (/api/now/table/<table>) through a Named Credential called "ServiceNow". ServiceNow never calls Fusion, and no custom code is installed in ServiceNow. Actions run one at a time, so ServiceNow is never sent requests in parallel. A Service Sync Job holds an ordered list of Sync Actions. Each action is one operation (Insert, Update or Delete) in one direction (Inbound = ServiceNow to Fusion, Outbound = Fusion to ServiceNow) for one ServiceNow table and one Fusion object. Service Maps say which ServiceNow column fills which Fusion field.

  1. 1
    Start the job

    The job starts on its schedule or from the Run Sync Job button. Fusion checks the running user's object and field access, stamps Last Run Start on the job, and writes a "[ SCHEDULED START ]" or "[ MANUAL START ]" Sync Log.

  2. 2
    Run each enabled Sync Action in order

    Actions run one after another, in their Order. Each action is its own batch job; when it finishes, the next one starts. Disabled actions are skipped.

  3. 3
    Inbound Insert

    Fusion reads the ServiceNow table page by page (Batch Size records per call), turns each row into a Fusion record using the Service Maps, applies any Sync Action Criteria, and creates only records whose ServiceNow ID does not already exist in Fusion. It stamps Last Inbound Sync on each new record.

  4. 4
    Inbound Update

    Fusion reads the table the same way and updates the existing Fusion records whose ServiceNow ID matches the row's sys_id. It stamps Last Inbound Sync.

  5. 5
    Inbound Delete

    Fusion reads ServiceNow's deleted-records table (sys_audit_delete) for the table and deletes the Fusion records whose ServiceNow ID matches a deleted sys_id.

  6. 6
    Outbound Insert

    Fusion sends records that have no ServiceNow ID yet to ServiceNow, writes the returned sys_id into the record's ServiceNow ID field, and stamps Last Outbound Sync.

  7. 7
    Outbound Update

    Fusion sends every record that already has a ServiceNow ID (and passes the action's criteria) to ServiceNow, and stamps Last Outbound Sync.

  8. 8
    Outbound Delete

    Fusion finds records in its Recycle Bin that still have a ServiceNow ID and deletes the matching rows in ServiceNow.

  9. 9
    Finish

    Each action writes an "[ ACTION ] Summary" Sync Log with success and failure counts. The last action writes a "[ FINISH ]" log and stamps Last Run Finish. If Continuous Execution is checked, the job starts again straight away.

Each Service Sync Job can be scheduled Daily, Weekly (on a chosen day) or Monthly (on a chosen date) at an Execution Time in 15-minute steps; checking Scheduled creates a Salesforce scheduled job. A job can also be run at any time with the Run Sync Job button. Continuous Execution makes a job restart itself as soon as it finishes, for near real-time cases.

Key terms

Service Map
One field mapping: a Fusion object and field (Platform Object, Platform Object Field) paired with a ServiceNow table and column (Service Object, Service Object Field), plus a Direction. Sync Actions can only be created for combinations that have Service Maps.
Service Sync Job
The unit you schedule or run. It holds the ordered Sync Actions and the Sync Logs of every run.
Sync Action
One step in a job: Direction (Inbound or Outbound), Operation Type (Insert, Update or Delete), the ServiceNow table, the Fusion object, a Batch Size and an Order.
Sync Action Criteria
An optional filter on a Sync Action: an Evaluation Field on the Fusion record compared to a Target Value (Equal To, Greater Than, Less Than, Not Equal To). Only records that pass are synced.
Sync Log
A record of a job run: start, per-action summary, errors and finish, with a Summary and a Message. Error Event is checked on logs that report failures.
ServiceNow ID
A field on each synced Fusion object that holds the ServiceNow record's sys_id. It is how the connector matches a Fusion record to a ServiceNow row. Last Inbound Sync and Last Outbound Sync record when the record last moved in each direction.
Platform Object and Service Object
The connector's words for the Fusion object (platform) and the ServiceNow table (service).
ServiceNow Type Field and ServiceNow Type Value
Lets one Fusion object hold records from several ServiceNow tables. A Fusion field (the Type Field) holds a value (the Type Value) that says which ServiceNow table a record belongs to.
Extension tables
ServiceNow tables that extend (inherit from) a parent table. By default a Sync Action reads only rows whose sys_class_name equals its Class Name; Include Extension Tables reads child-table rows too.
01

Before you start

Licensing

ServiceNow

The customer's ServiceNow subscription must be procured and licenses provisioned before implementation starts.

Fusion ServiceNow Connector

Sales must hold a 30-minute validation call between the prospect or client and Fusion Professional Services before the connector can be sold. The ServiceNow Connector Validation Questionnaire is used to scope it.

Packages

PackageMinimumNote
The Fusion Framework (ff_2gp)LatestRequired base package. The connector syncs Fusion Framework objects such as Application, Component and Incident.
ServiceNow Connector (sndc_2gp)LatestAdds the ServiceNow Connector app, the Service Map, Service Sync Job, Sync Action, Sync Action Criteria and Sync Log objects, and the ServiceNow ID, Last Inbound Sync and Last Outbound Sync fields on ten Fusion Framework objects. On install it registers itself as a Fusion extension and, on first install only, assigns its FFSNDC_AuraEnabledApexPermissions permission set to active users.

Data

The connector is generic: any ServiceNow table can be mapped to any Fusion custom object that has the three sync fields (ServiceNow ID, Last Inbound Sync, Last Outbound Sync). The package adds those fields to the objects below, which are the usual targets. Which ServiceNow table feeds which object is decided per implementation in the Service Maps; nothing is pre-mapped.

What moves between the systems

Application (ff_2gp__Application__c)

Both ways between Fusion and ServiceNow: A CMDB application table chosen in the Service Maps (cmdb_ci_appl is the connector's built-in example). Matched on ServiceNow ID = sys_id. Main CMDB use case.

Component (ff_2gp__Component__c)

Both ways between Fusion and ServiceNow: A CMDB configuration-item table chosen in the Service Maps. Matched on ServiceNow ID = sys_id.

IT Service (ff_2gp__IT_Service__c)

Both ways between Fusion and ServiceNow: A ServiceNow table chosen in the Service Maps. Matched on ServiceNow ID = sys_id.

Application Application Dependency, Application Component Dependency, Component Component Dependency, IT Service Application Dependency (the ff_2gp dependency junction objects)

Both ways between Fusion and ServiceNow: A ServiceNow relationship table chosen in the Service Maps. The upstream and downstream records are filled from ServiceNow reference columns. Sync the applications and components first, or the lookups cannot be resolved.

Key Contact (ff_2gp__Key_Contact__c)

Both ways between Fusion and ServiceNow: A user table chosen in the Service Maps (sys_user is the connector's built-in example). Often synced first so that owner-type reference columns on other tables can be resolved.

Incident (ff_2gp__Incident__c) and Incident Procedure Step (ff_2gp__Incident_Procedure_Step__c)

Both ways between Fusion and ServiceNow: A ServiceNow incident or task table chosen in the Service Maps. Supports IT disaster recovery task orchestration: push procedure steps to ServiceNow, pull assignment and status updates back.

What you can configure

All mappings are records you create in Fusion, on the Service Maps tab (one Service Map per field pair, each with a Direction of Both, Fetch Only or Send Only). Which records move, and when, is set on the Service Sync Jobs and Sync Actions tabs. ServiceNow reference columns map to Fusion lookup fields: the connector finds the Fusion record whose ServiceNow ID equals the referenced sys_id. Supported ServiceNow column types are boolean, choice, currency, decimal, due_date, email, float, glide_date, glide_date_time, GUID, integer, multi_two_lines, percent_complete, ph_number, phone_number_e164, price, reference, string and url.

Roles and permissions

SNDC Admin Permissions
Access to the connector's objects (Service Map, Service Sync Job, Sync Action, Sync Action Criteria, Sync Log), the ServiceNow ID and sync date fields on the Fusion objects, and the connector's Apex classes. Its description says it is meant for System Administrator profile users.
FFSNDC_AuraEnabledApexPermissions
Apex class access that the connector's components need. Assigned automatically to active users on first install.
02

Capabilities

What each part of the connector does and how people use it. Setup for each is under Implementation.

Required always set up Optional included, set up if the customer uses it

Run a sync now

Required

How to use it

  1. Open the Service Sync Job record.
  2. Click Run Sync Job.
  3. On the confirmation page, click Run Sync Job again.
  4. Watch progress in the Sync Logs related list on the job.

Change when a job runs

Required

How to use it

  1. Edit the Service Sync Job.
  2. Set Interval (Daily, Weekly or Monthly), Day of the Week or Day of the Month, and Execution Time.
  3. Check Scheduled and save. Uncheck Scheduled to stop the schedule.

Check what happened in a run

Required

How to use it

  1. Open the Sync Logs tab, or the Sync Logs related list on the job.
  2. Look for logs named "[ ERROR ]" or with Error Event checked.
  3. Open the "[ ACTION ] Summary" log for each action to see success and failure counts and the failing records' ServiceNow IDs.

Clear old Sync Logs

Required

How to use it

  1. From the Sync Logs list view, select the logs and click Delete Selected Logs (needs Modify All on Sync Log).
  2. Or turn on automatic cleanup in Fusion Framework Settings, under Log Cleanup Settings (the Sync Log entry keeps 90 days by default, and is off until enabled).
03

Implementation

Everything an implementer sets up, in the order to build it. Advanced configuration explains the settings behind these steps and when to change them.

  1. 1

    Prepare ServiceNow

    Required

    What must be in place in ServiceNow and in Salesforce before you install.

    • At least one ServiceNow sub-production instance (Dev, QA or UAT) that mirrors production, for building and testing.
    • A ServiceNow user for Fusion with access to every table and column in scope, and to the sys_audit_delete table. Read access is enough if data only flows into Fusion; outbound actions need create, update and delete rights on the target tables.
    • During setup, give that user the web_service_admin role (or a custom role with the same read, create and edit rights to schema and tables). The configuration screens read table and column names live from ServiceNow; without that access the ServiceNow admin must send exact table and column names instead.
    • A direct connection from Salesforce to the ServiceNow instance. Proxies and middleware are not supported. If ServiceNow enforces IP restrictions, allow-list Fusion's IP addresses and the Salesforce IP ranges. An on-premise ServiceNow needs the customer's IT team to open access.
    • A ServiceNow admin or subject-matter expert at discovery and working sessions, plus an ITDR representative if ITDR or ITSM data is in scope.
    • A completed data-mapping document: for each field, the Fusion field API name, the ServiceNow column API name and display name, and the ServiceNow internal data type.
    • If the Fusion production org is already live, the connector is built in a Fusion sandbox first. If not, it is built in the org that will go live.
    Depends onNothing
  2. 2

    Agree the scope with the customer

    Required

    The Service Maps and Sync Actions are built straight from this list.

    • Hold a discovery session with the customer's ServiceNow admin to list the tables and columns to sync.
    • Confirm the data flow for each table - inbound to Fusion, outbound to ServiceNow, or both.
    • Compare data types and flag any mismatch between ServiceNow columns and Fusion fields.
    • Identify record types or unique identifiers used to include or exclude records.
    • Have the customer complete the data-mapping document.
    Depends onPrepare ServiceNow
  3. 3

    Get a ServiceNow user for Fusion

    Required

    Fusion cannot start configuring until it can reach the instance with this user.

    • Ask the customer's ServiceNow team to create a user for Fusion in the sub-production instance.
    • Give it web_service_admin (or an equivalent custom role) for setup, and access to sys_audit_delete.
    • Allow-list Fusion's and Salesforce's IP addresses if the instance restricts IPs.
    Depends onAgree the scope with the customer
  4. 4

    Install the packages

    Required

    • Confirm The Fusion Framework (ff_2gp) is installed.
    • Install the ServiceNow Connector (sndc_2gp) package.
    • Assign SNDC Admin Permissions to the administrators who will configure and run the connector.
    Depends onGet a ServiceNow user for Fusion
  5. 5

    Create the ServiceNow Named Credential

    Required

    Every call the connector makes uses the Named Credential called "ServiceNow". With any other name, nothing connects.

    • In Salesforce Setup, go to Named Credentials.
    • Create a new legacy Named Credential with Label and Name both exactly "ServiceNow".
    • Set the URL to the ServiceNow instance URL.
    • Set Identity Type to Named Principal and Authentication Protocol to Password Authentication, and enter the ServiceNow user's User ID and password.
    • Check Generate Authorization Header, Allow Merge Fields in HTTP Header and Allow Merge Fields in HTTP Body, then save.
    • Test it by opening a new Service Map. If the Service Object list fills with ServiceNow tables, the connection works.
    Depends onInstall the packages
  6. 6

    Check the sync fields on each target object

    Required

    The connector stops with an error if an object it syncs is missing any of the three.

    • Make sure each Fusion object you will sync has ServiceNow ID (text, external ID), Last Inbound Sync and Last Outbound Sync (date/time).
    • The package already adds them to the ten Fusion Framework objects listed under Data. Add them yourself to any other custom object.
    Depends onCreate the ServiceNow Named Credential
  7. 7

    Create the Service Maps

    Required

    • On the Service Maps tab, click New.
    • Choose the Platform Object and Platform Object Field (the Fusion side).
    • Choose the Service Object and Service Object Field (the ServiceNow table and column).
    • Set the Direction - Both, Fetch Only or Send Only.
    • Save. Fusion checks that the column exists on the ServiceNow table.
    • Create one Service Map for every field pair, including one for the ServiceNow ID field.
    Depends onCheck the sync fields on each target object
  8. 8

    Create the Sync Job and its Sync Actions

    Required

    • On the Service Sync Jobs tab, create a job.
    • Add a Sync Action for each table and operation (Insert, Update, Delete) in scope, with its Direction, Batch Size and Order.
    • Order the actions so referenced tables load first (for example, users before applications, applications before dependencies).
    • Add Sync Action Criteria, or a ServiceNow Inbound Criteria query, to limit which records move.
    • Check Enabled on each action you want to run.
    Depends onCreate the Service Maps
  9. 9

    Test against sub-production

    Required

    • Run the job with Run Sync Job and read the Sync Logs.
    • Check the records in both systems and fix any mapping errors.
    • Get the customer's sign-off on sub-production.
    Depends onCreate the Sync Job and its Sync Actions
  10. 10

    Point at production and schedule

    Required

    • Update the ServiceNow Named Credential to the production instance and user.
    • Update any Service Maps that hold instance-specific values.
    • Clean up test data.
    • Run the jobs against production, then set the Interval, day and Execution Time and check Scheduled.
    • Make sure the schedule does not clash with other Fusion jobs.
    • Monitor the scheduled runs and Sync Logs.
    Depends onTest against sub-production
04

Advanced configuration

The settings behind the setup steps: what each one is, why it matters and when to change it.

Service Map DirectionWhether a field mapping is used when reading from ServiceNow, writing to ServiceNow, or both.

What it is

Whether a field mapping is used when reading from ServiceNow, writing to ServiceNow, or both.

Why it matters

Some fields are owned by one system. Sending them back would overwrite the owner's value.

When to change it

  • A field is mastered in ServiceNow (use Fetch Only).
  • A field is mastered in Fusion, such as recovery objectives (use Send Only).

How

  • Edit the Service Map and set Direction to Both, Fetch Only or Send Only.
Empties as NullWhen checked, Fusion does not send blank values for this field to ServiceNow.

What it is

When checked, Fusion does not send blank values for this field to ServiceNow.

Why it matters

Stops an empty Fusion field from wiping a value in ServiceNow, for example a Status of "In-Progress".

When to change it

  • The field is often blank in Fusion but filled in ServiceNow.

How

  • Check Empties as Null on the Service Map.
Match Choice String LabelFor a ServiceNow choice column whose internal type is integer, matches the choice's text label to a Fusion...

What it is

For a ServiceNow choice column whose internal type is integer, matches the choice's text label to a Fusion text or picklist field.

Why it matters

Without it, an integer choice column can only map to a Fusion number field.

When to change it

  • You want the readable label (for example "High") in Fusion rather than the stored number.

How

  • Check Match Choice String Label on the Service Map.
ServiceNow Type Field and Type ValueLets one Fusion object receive or send records for several ServiceNow tables.

What it is

Lets one Fusion object receive or send records for several ServiceNow tables.

Why it matters

Fusion may hold, say, servers and databases on one object, while ServiceNow keeps them in separate tables.

When to change it

  • More than one ServiceNow table maps to the same Fusion object.

How

  • Pick a Fusion text field as the ServiceNow Type Field and the value that marks each table as the ServiceNow Type Value.
  • All Service Maps for one Fusion object must use the same ServiceNow Type Field, even if it is "-- NONE --".
ServiceNow Inbound CriteriaA ServiceNow encoded query (the sysparm_query value) added to inbound reads.

What it is

A ServiceNow encoded query (the sysparm_query value) added to inbound reads.

Why it matters

Filters records in ServiceNow before they are sent, which is faster than filtering in Fusion.

When to change it

  • You only want some rows, such as active or in-scope applications.

How

  • On an inbound Sync Action, enter the encoded query in ServiceNow Inbound Criteria. See ServiceNow's "Encoded Query Strings" article for syntax.
Sync Action CriteriaFilters on Fusion field values (Evaluation Field, Comparison, Target Value) applied to records before they...

What it is

Filters on Fusion field values (Evaluation Field, Comparison, Target Value) applied to records before they are saved or sent.

Why it matters

Limits a sync to the records in scope.

When to change it

  • Only some Fusion records should go to ServiceNow, or only some incoming rows should be saved.

How

  • Open the Sync Action and add Sync Action Criteria records.
Include Extension Tables and Class NameBy default an inbound action adds sys_class_name=<Class Name> to its query, so it reads only rows of that...

What it is

By default an inbound action adds sys_class_name=<Class Name> to its query, so it reads only rows of that exact table. Include Extension Tables removes that filter and reads rows of child tables too. Class Name defaults to the ServiceNow table name.

Why it matters

If the filter does not match how the customer's table is built, expected records never arrive.

When to change it

  • The table is a parent of other tables and you want the child rows.
  • Records are missing and the table has, or once had, Extend Table set in ServiceNow.
  • The rows' sys_class_name differs from the table name (edit Class Name).

How

  • Check Include Extension Tables on the Sync Action, or correct Class Name.
Batch SizeHow many records each call reads or sends (default 100).

What it is

How many records each call reads or sends (default 100).

Why it matters

Larger batches mean fewer calls; smaller batches stay within Salesforce limits for wide records.

When to change it

  • Jobs hit limits or run slowly.

How

  • Edit Batch Size on the Sync Action.
Continuous ExecutionMakes the job start again as soon as its last action finishes, until you uncheck it.

What it is

Makes the job start again as soon as its last action finishes, until you uncheck it.

Why it matters

Gives near real-time sync, for example syncing incident procedures with ServiceNow incidents during a DR exercise.

When to change it

  • Only for near real-time use cases. Not for CMDB applications and components, which should run daily, weekly or monthly.

How

  • Check Continuous Execution on the Service Sync Job, then run it once. Uncheck it to stop.
06

Troubleshooting

Limitations

  • Only these ServiceNow column types are supported - boolean, choice, currency, decimal, due_date, email, float, glide_date, glide_date_time, GUID, integer, multi_two_lines, percent_complete, ph_number, phone_number_e164, price, reference, string and url. Others (for example journal, html, image) cannot be mapped.
  • Only direct API access to ServiceNow is supported; no proxies or middleware.
  • Scheduled runs are at most daily. Faster syncing needs Continuous Execution, which should be agreed with a Fusion Solution Architect.
  • Each run reads the whole filtered table; there is no "changed since last run" filter. Use criteria to keep volumes down.
  • Inbound deletes read ServiceNow's sys_audit_delete table. With more than about a million rows in that table, delete jobs slow down and can fail.
  • Reference columns only resolve if the referenced records were synced into Fusion first.
  • ServiceNow platform encryption and gateway encryption are not supported.
  • The Service Object list only shows ServiceNow tables whose names contain cmdb, cmn_location, task, inc, sys_user or change, or start with u_ (and do not contain "000"). Other tables must be typed in.
  • With more than 999 matching tables, table and column names must be typed in by hand.
  • GRC module data is out of scope.
  • Complex transformations (combining fields, multi-record logic) are not supported.

Common problems

Opening a Service Map shows "The Fusion Framework was unable to retrieve a list of available Service Objects from ServiceNow via the ServiceNow REST API."

Check that the Named Credential is called exactly ServiceNow, points at the right instance URL, and that the user and password are valid. Check the user can read sys_db_object, and that IP allow-listing is in place.

"Since more than 999 tables exist in ServiceNow that can be mapped, the Service Object and Service Object Field values must be manually specified."

Type the exact ServiceNow table and column names; get them from the customer's ServiceNow admin.

Creating a Sync Action shows "At least one Service Map record must exist in order to create a Sync Action record."

Create the Service Maps first.

Saving a Sync Action shows that the selected combination does "not match the Direction, Platform Object, and Service Object values of any existing Service Map records".

Pick a Direction, Fusion object and ServiceNow table that already have Service Maps, or add the missing Service Maps.

Saving a scheduled job shows "You must provide an execution time to schedule this job." or ""Day of the Week" must be specified for Weekly scheduling."

Fill in Execution Time, and Day of the Week for Weekly jobs or Day of the Month for Monthly jobs.

A Sync Log reads "[ ERROR ] ..." with "No Actions Specified."

The job has no enabled Sync Actions. Check Enabled on the actions.

Run Sync Job shows "This user does not have permission to execute the specified Sync Job." or "Unable to manually execute the specified Sync Job."

Assign SNDC Admin Permissions and make sure the user can read and edit every Fusion object the job's actions use.

Expected records do not arrive in Fusion, with no clear error.

Check, in order - (1) a mapped reference column points to a table that has not been synced yet (for example an Owner column referencing sys_user before Key Contacts are loaded); (2) a required Fusion field is mapped and ServiceNow sends it empty; (3) a restricted picklist is mapped and ServiceNow sends a value it does not allow; (4) the sys_class_name filter - try Include Extension Tables, or correct Class Name.

An outbound Delete summary shows "Not Found (benign)" failures.

The ServiceNow row was already gone (HTTP 404) - usually a record left in Fusion's Recycle Bin that was deleted on an earlier run. No action needed. "Rejected" failures are ServiceNow refusing the delete; check the user's rights on that table.

Sync Log volume keeps growing.

Turn on Log Cleanup Settings for Sync Log in Fusion Framework Settings, or use Delete Selected Logs.

Flag a problem