ServiceNow
Connect & Ingest data from ServiceNow
ServiceNow is an enterprise IT service management (ITSM) platform that provides incident management, change management, asset tracking, and workflow automation. The Sling ServiceNow connector extracts data from the ServiceNow Table API, supporting ITSM records, user management, CMDB, and audit data.
CLI Pro Required: APIs require a CLI Pro token or Platform Plan.
Setup
The following credentials and inputs are accepted:
Secrets:
instance(required) -> Your ServiceNow instance name (e.g.,dev12345fromdev12345.service-now.com)username(required) -> ServiceNow username with API accesspassword(required) -> ServiceNow password for the specified user
Inputs:
anchor_date(optional) -> The starting date for historical data extraction on first sync (default: 1 year ago). Format:YYYY-MM-DD
Getting Your Credentials
Log in to your ServiceNow instance as an administrator
The instance name is the subdomain of your ServiceNow URL (e.g.,
dev12345fromhttps://dev12345.service-now.com)Use your admin username and password for authentication
Ensure the user has the
rest_api_exploreroradminrole for full API access
Important: Store your credentials securely. Never commit passwords to version control. Consider creating a dedicated service account with read-only access for data extraction.
Using sling conns
Environment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
With anchor date for historical data:
Replication
Here's an example replication configuration to sync ServiceNow data to a PostgreSQL database:
Sync all endpoints:
Endpoints
ITSM Records
incidents
IT incident records
Yes
change_requests
Change request records
Yes
problems
Problem records
Yes
tasks
Generic task records (base table for all ticket types)
Yes
sc_requests
Service catalog request records
Yes
sc_req_items
Service catalog requested item records
Yes
User Management
sys_users
User account records
Yes
sys_user_groups
User group records
Yes
sys_user_group_members
Group membership records
No
sys_user_roles
Role definition records
No
sys_user_has_roles
User-to-role assignment records
No
CMDB
cmdb_ci
Configuration item records
Yes
cmdb_ci_servers
Server configuration item records
Yes
Reference Data
cmn_locations
Location records
No
core_companies
Company/organization records
No
Knowledge & Audit
kb_knowledge
Knowledge base article records
Yes
sys_audit
Audit log records
Yes
To discover available endpoints:
Incremental Sync
The ServiceNow connector supports incremental sync for most endpoints using the sys_updated_on timestamp field. On first sync, records from the last year (or the configured anchor_date) are fetched. Subsequent syncs only fetch records modified after the last sync timestamp.
Supported Incremental Endpoints
ITSM:
incidents,change_requests,problems,tasks,sc_requests,sc_req_itemsUsers:
sys_users,sys_user_groupsCMDB:
cmdb_ci,cmdb_ci_serversKnowledge:
kb_knowledgeAudit:
sys_audit(usessys_created_onsince audit records are append-only)
Full-Refresh Only Endpoints
Reference and lookup tables use full-refresh mode since they are typically small and change infrequently:
cmn_locations,core_companies,sys_user_roles,sys_user_has_roles,sys_user_group_members
Rate Limiting
The ServiceNow API has rate limits that vary by instance type:
Developer instances: Lower rate limits
Production instances: Higher rate limits based on subscription
The connector automatically:
Uses conservative rate limiting (5 requests/second)
Retries with exponential backoff on HTTP 429 (rate limit) responses
Retries on HTTP 5xx server errors
Common Use Cases
ITSM Incident Analytics
User and Access Management
CMDB Asset Inventory
If you are facing issues connecting, please reach out to us at support@slingdata.io, on discord or open a Github Issue here.
Last updated
Was this helpful?