ServiceNow to JSM Assets
ServiceNow to JSM Assets Integration Guide
This guide explains how to use OnLink to import ServiceNow data (Table API) into JSM Assets. It covers the ServiceNow API connection, sample data, field mapping, validation, and optional query parameters.
Prerequisites
A JSM Assets schema and object type for the data you want to import.
OnLink installed and available from Manage your apps.
ServiceNow API endpoints.
Permission in JSM Assets to configure data sources, mappings, and imports.
The ServiceNow API endpoint URL for the object type you plan to import.
1. Prepare ServiceNow credentials
Before configuring OnLink, confirm that you have OAUTH or Basic AUTH credentials to access ServiceNow API endpoints.
2. Configure the OnLink data source
In OnLink, add an Assets Data Source.
Select Authentication Type to Basic AUTH or OAUTH
If Basic Auth, provide user name and password. If OAUTH, provide client id and secret.
The credentials should have access to
Read‑only access to required tables/views and rest_api_explorer role
3. Configure the API method
Use a GET request to retrieve records from the ServiceNow API. For example, to fetch records, configure the request as follows:
Set Method to
GET.Set URL to the ServiceNow API endpoint. The screenshot has a placeholder {api-url} and {table name}. Replace with your actual hostname and table name when configuring.
Set Response data path to
result.Sample tables include:
cmdb_ci_computercmdb_ci_vm_instancecmdb_ci_serveralm_hardware
GET https://{instance}.service-now.com/api/now/table/cmdb_ci_computerSample JSON output
{
"result": [
{
"sys_id": "1c741bd70b2322007518478d83673af3",
"name": "MBP-JSMITH-01",
"asset_tag": "P1000123",
"serial_number": "C02XK1ABJG5H",
"manufacturer": {
"link": "https://acme.service-now.com/api/now/table/core_company/b7e7d7d8c0a8016900a5d7f291acce5c",
"value": "b7e7d7d8c0a8016900a5d7f291acce5c"
},
"model_id": {
"link": "https://acme.service-now.com/api/now/table/cmdb_model/d501454f1b1310002502fbcd2c071334",
"value": "d501454f1b1310002502fbcd2c071334"
},
"os": "Mac OS X",
"os_version": "14.6.1",
"cpu_type": "Apple M3 Pro",
"cpu_count": "1",
"cpu_core_count": "12",
"ram": "18432",
"disk_space": "512",
"ip_address": "10.20.14.57",
"mac_address": "a4:83:e7:1f:22:9c",
"assigned_to": {
"link": "https://acme.service-now.com/api/now/table/sys_user/62826bf03710200044e0bfc8bcbe5df1",
"value": "62826bf03710200044e0bfc8bcbe5df1"
},
"location": {
"link": "https://acme.service-now.com/api/now/table/cmn_location/25ab9c4d0a0a0bb300f7dabdc0ca7c1c",
"value": "25ab9c4d0a0a0bb300f7dabdc0ca7c1c"
},
"department": {
"link": "https://acme.service-now.com/api/now/table/cmn_department/221f79b7c6112284005d646b76ab978c",
"value": "221f79b7c6112284005d646b76ab978c"
},
"company": {
"link": "https://acme.service-now.com/api/now/table/core_company/31bea3d53790200044e0bfc8bcbe5dec",
"value": "31bea3d53790200044e0bfc8bcbe5dec"
},
"install_status": "1",
"operational_status": "1",
"hardware_status": "installed",
"form_factor": "Laptop",
"virtual": "false",
"sys_class_name": "cmdb_ci_computer",
"last_discovered": "2026-09-21 14:05:33",
"warranty_expiration": "2028-03-15",
"sys_created_on": "2025-03-15 09:12:44",
"sys_updated_on": "2026-09-21 14:05:33"
},
{
"sys_id": "3a6cb1b1c611227a0180aa4b3a1e0a41",
"name": "LT-DELL-0457",
"asset_tag": "P1000457",
"serial_number": "7HXQ2Y3",
"manufacturer": {
"link": "https://acme.service-now.com/api/now/table/core_company/aa0a6df8c611227601cd2ed45989e0ac",
"value": "aa0a6df8c611227601cd2ed45989e0ac"
},
"model_id": {
"link": "https://acme.service-now.com/api/now/table/cmdb_model/0c43b5b8c611227500d3f5a4ec1df9e3",
"value": "0c43b5b8c611227500d3f5a4ec1df9e3"
},
"os": "Windows 11 Enterprise",
"os_version": "10.0.22631",
"cpu_type": "Intel Core i7-1365U",
"cpu_count": "1",
"cpu_core_count": "10",
"ram": "32768",
"disk_space": "476",
"ip_address": "10.20.18.112",
"mac_address": "3c:52:82:6a:0f:d1",
"assigned_to": "",
"location": {
"link": "https://acme.service-now.com/api/now/table/cmn_location/8226baa4ac1d55eb40eb653c02649519",
"value": "8226baa4ac1d55eb40eb653c02649519"
},
"department": "",
"company": {
"link": "https://acme.service-now.com/api/now/table/core_company/31bea3d53790200044e0bfc8bcbe5dec",
"value": "31bea3d53790200044e0bfc8bcbe5dec"
},
"install_status": "6",
"operational_status": "2",
"hardware_status": "in_stock",
"form_factor": "Laptop",
"virtual": "false",
"sys_class_name": "cmdb_ci_computer",
"last_discovered": "2026-08-30 22:41:10",
"warranty_expiration": "2027-11-01",
"sys_created_on": "2024-11-02 16:20:05",
"sys_updated_on": "2026-08-30 22:41:10"
}
]
}5. Configure the Assets import and mapping
After the connection is established, create the Assets import by following the JSM Assets Data Synchronization guide.
Use the fetched API sample to identify the Fleet JSON field names and map them to the corresponding JSM Assets attributes. The key: mapping should identify the stable unique value used to match and update existing Assets objects.
ServiceNow field | Mapping notes |
|---|---|
| Unique ServiceNow record identifier. Map to an external ID or source object ID so imports can update the same asset on subsequent runs. |
| Asset or CI display name. Use as the primary label when available; otherwise derive from serial number, asset tag, or host name. |
| Organization-assigned asset tag. Map to the asset tag field and use for reconciliation only if it is consistently populated and unique. |
| Hardware serial number. Recommended matching attribute for physical devices when present. |
| Device manufacturer or vendor. Normalize values if needed to match existing manufacturer objects or picklist values. |
| Model reference from ServiceNow. Map to model name/model ID as available; resolve referenced display values when the API returns links or sys_ids. |
| Operating system name, such as Windows, macOS, or Linux. Map to the OS attribute. |
| Operating system version or build. Keep separate from OS name for reporting and filtering. |
| Processor type or architecture. Map to CPU model/type when tracked. |
| Primary IP address. Map to network/interface attributes; multiple addresses may require a related object or separate import. |
| User assigned to the asset. Resolve ServiceNow reference values to a user display name, email, or account identifier before mapping. |
| Asset location reference. Resolve to a location name or location object key that exists in Assets. |
| Owning department reference. Resolve display values and align with existing department naming standards. |
| Company or owning organization. Map to vendor/company/organization depending on the target schema. |
| Lifecycle installation status. Map ServiceNow status values to the target status list, for example In use, In stock, Retired, or Missing. |
| Warranty end date. Map to a date attribute; verify source format before import. |
Mapping guidance
Start with one unique
key:mapping so OnLink can identify whether to create or update an Assets object.Add
map:entries for each Fleet field you want to store in Assets.Compare the Fleet sample JSON with the Assets object type attributes before running an import.
If a value is nested in the JSON response, inspect the sample output carefully and use the field path supported by the OnLink mapping configuration.
6. Validate and run the import
Use Get Data to preview the data returned by Fleet.
Confirm that the sample records contain the expected fields and values.
Use Get Data to preview the data returned by Fleet.
Review object type mappings and attribute names for spelling and case consistency.
Run the import only after the previewed data and mapping are correct.