Skip to main content

ServiceNow

ServiceNow is a comprehensive IT service management (ITSM) and enterprise cloud platform that helps organizations manage digital workflows, IT operations, and business processes. It serves as a centralized system of record for IT infrastructure, service requests, incidents, changes, and customer service management activities across the entire enterprise.

CategoryIT service management
DirectionQuery source
Sign-inUsername and Password, OAuth2 Client Credentials
Query languagesSQLite
Tables19
Query templates128
Websiteservicenow.com

Before you start​

Huntbase can sign in to ServiceNow with any of these methods: Username and Password, OAuth2 Client Credentials. Pick one, create the credential in ServiceNow, then keep it to hand for the Connect step.

Username and Password​

Authenticate with your ServiceNow instance username and password.

  1. Choose or create the ServiceNow user the connection should sign in as, and note its username and password.

OAuth2 Client Credentials​

Optionally use OAuth2 with a registered application client ID and client secret (used together with the instance username and password).

  1. Choose or create the ServiceNow user the connection should sign in as. OAuth here still uses that user's username and password.
  2. As an admin, go to All › System OAuth › Application Registry and click New.
  3. Select Create an OAuth API endpoint for external clients, complete the form, and click Submit. Leave Client Secret blank to have one generated.
  4. Open the new record and copy the Client ID and Client Secret.

For the vendor's own instructions, see ServiceNow OAuth endpoint for external clients.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect ServiceNow​

  1. Go to Connections and click New connection, or click New connection on the ServiceNow product page.
  2. On Product, pick ServiceNow and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Settings​

Where your ServiceNow lives:

FieldRequiredNotes
Instance URLYesYour instance URL, such as https://acme.service-now.com.
Additional ObjectsNoExtra ServiceNow tables to query, by table name, such as cmdb_model or cmn_location.

Credentials​

Choose a Method, enter a Credential label (for example Production), then fill in the fields for that method.

Username and Password​

FieldRequiredNotes
UsernameYesSecret — not shown again after you save it.
PasswordYesSecret — not shown again after you save it.

OAuth2 Client Credentials​

FieldRequiredNotes
UsernameYesSecret — not shown again after you save it.
PasswordYesSecret — not shown again after you save it.
Client IDNoSecret — not shown again after you save it.
Client SecretNoSecret — not shown again after you save it.

Query it​

Once connected, ServiceNow can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 19 tables listed below, alongside every other connected source.

Example: SQLite​

List unique contact sources — Retrieve all distinct source values from the contact list.

SELECT DISTINCT source FROM servicenow_now_contact;

ServiceNow ships with 128 query templates. Find them in Library › Queries — see Query templates.

What syncs automatically​

ServiceNow comes with a content pack. These queries run on a schedule on each new connection so the entities they find appear in the Activity Feed without you asking. You can turn syncing off from the connection's Synchronisation Settings card.

QueryFinds
Sync CMDB serversdevice, ip
Sync active consumersuser

Tables​

ServiceNow adds 19 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 19 tables
TableContains
servicenow_cmdb_ciRepresents configuration items and their attributes in the CMDB.
servicenow_cmdb_ci_serverManages server configuration item data in the CMDB.
servicenow_cmdb_ci_serviceTracks service-related information in the CMDB.
servicenow_incidentTracks reported incidents.
servicenow_now_consumerCustomer Service Management (CSM) consumer records.
servicenow_now_contactCustomer Service Management (CSM) contact records.
servicenow_sn_chg_rest_changeChange Management - Change request.
servicenow_sn_chg_rest_change_affected_cmdb_ciChange Management - CMDB CI affected by change.
servicenow_sn_chg_rest_change_impacted_cmdb_ci_serviceChange Management - CMDB CI service impacted by change.
servicenow_sn_chg_rest_change_modelChange Management - Change Model.
servicenow_sn_chg_rest_change_taskChange Management - Change Task.
servicenow_sys_auditTracks changes made to ServiceNow tables.
servicenow_sys_audit_relationRecords audit trail data for relationships between records.
servicenow_sys_group_has_roleRepresents relationships between user groups and roles.
servicenow_sys_userManages user information in the ServiceNow.
servicenow_sys_user_grmemberUser Group Member.
servicenow_sys_user_groupManages group memberships for users.
servicenow_sys_user_has_roleTracks assigned roles for users.
servicenow_sys_user_roleDefines available roles in the ServiceNow.

Next steps​