Skip to main content
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.
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 a forager_integration user with:
  • rest_service role
  • import_transformer role (instead of itil)

Step 2 — Create the Import Set table

  1. Go to System Import Sets → Administration → Tables → Create table
  2. Set:
    • Label: Forager Attestation Import
    • Name: u_forager_attestation_import (auto-populated)
    • Import set table:
  3. Add columns:
  1. Save

Step 3 — Create a Transform Map

  1. Go to System Import Sets → Administration → Transform Maps → New
  2. Set:
    • Name: Forager to CMDB CI
    • Source table: u_forager_attestation_import
    • Target table: cmdb_ci (or your specific CI subclass)
  3. 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.
  1. Set Coalesce on u_asset_tag → asset_tag so the transform updates the existing CI rather than creating a new one
  2. Save

Step 4 — Configure auto-transform (optional)

To transform automatically on every import (real-time behavior):
  1. On the Transform Map, check Run business rules
  2. Create a Business Rule on the import table:
    • When: after insert
    • Script:
Without auto-transform, rows accumulate in the staging table and can be transformed on a schedule via a scheduled job.

Forager dashboard setup

  1. Go to Settings → CMDB Webhooks → Add webhook
  2. The endpoint URL is the ServiceNow Table API pointing at your import table:
  3. Auth Header: Authorization / Basic [base64(username:password)]
  4. Replace the payload template with a flat field map matching your import table columns:

Testing

Verify a new row appears in your u_forager_attestation_import table, then run the Transform Map manually to confirm it maps to the correct CI.