This guide sets up a ServiceNow Import Set that receives Forager attestations into a staging table. A Transform Map then applies the data to the CMDB on your schedule or automatically on insert. Choose this approach if your organization requires staged, validated, or change-controlled CMDB updates before data lands on CI records.Documentation Index
Fetch the complete documentation index at: https://docs.hiveriselabs.com/llms.txt
Use this file to discover all available pages before exploring further.
For direct, real-time CI updates without a staging step, see ServiceNow — Scripted REST API instead.
What happens
ServiceNow setup
Step 1 — Create a dedicated integration user
Same as the Scripted REST API guide — create aforager_integration user with:
rest_serviceroleimport_transformerrole (instead ofitil)
Step 2 — Create the Import Set table
- Go to System Import Sets → Administration → Tables → Create table
- Set:
- Label:
Forager Attestation Import - Name:
u_forager_attestation_import(auto-populated) - Import set table: ✅
- Label:
- Add columns:
| Column label | Column name | Type |
|---|---|---|
| Asset Tag | u_asset_tag | String (100) |
| Location Path | u_location_path | String (500) |
| Anchor Name | u_anchor_name | String (200) |
| Updated By | u_updated_by | String (200) |
| Event Type | u_event_type | String (50) |
| Timestamp | u_timestamp | String (50) |
- Save
Step 3 — Create a Transform Map
- Go to System Import Sets → Administration → Transform Maps → New
- Set:
- Name:
Forager to CMDB CI - Source table:
u_forager_attestation_import - Target table:
cmdb_ci(or your specific CI subclass)
- Name:
- On the Field Maps tab, map:
| Source field | Target field | Coalesce |
|---|---|---|
u_asset_tag | asset_tag | ✅ (used to find the existing CI) |
u_location_path | u_forager_location | |
u_anchor_name | u_forager_anchor | |
u_updated_by | u_forager_confirmed_by | |
u_event_type | u_forager_event_type | |
u_timestamp | u_forager_confirmed_at |
The
u_forager_* target fields need to be created on cmdb_ci first. See Step 4 of the Scripted REST API guide for instructions.- Set Coalesce on
u_asset_tag → asset_tagso the transform updates the existing CI rather than creating a new one - Save
Step 4 — Configure auto-transform (optional)
To transform automatically on every import (real-time behavior):- On the Transform Map, check Run business rules
- Create a Business Rule on the import table:
- When: after insert
- Script:
Forager dashboard setup
- Go to Settings → CMDB Webhooks → Add webhook
- The endpoint URL is the ServiceNow Table API pointing at your import table:
- Auth Header:
Authorization/Basic [base64(username:password)] - Replace the payload template with a flat field map matching your import table columns:
Testing
u_forager_attestation_import table, then run the Transform Map manually to confirm it maps to the correct CI.