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:
- 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:
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.