Importing data
ServiceNow CSA · Lesson 19 of 24 · 2:13:33
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the ServiceNow Certified System Administrator (CSA) exam. In this lesson: data sources and import set tables, transform maps and field maps, coalesce, and running and scheduling imports. Includes three original practice questions, with Brackenridge Engineering, a fictional engineering firm whose IT team runs its ServiceNow instance, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Three thousand laptops
Brackenridge keeps three thousand laptops in a spreadsheet, and wants them in ServiceNow, without typing a single row. Next month's spreadsheet must then update the same records, not duplicate them. Import sets do both.
Data sources and import sets
Import sets let administrators import data from various sources, and then map that data into ServiceNow tables. A data source record defines where the data comes from: a CSV, Excel, XML, or JSON file, a JDBC database, an LDAP server, or REST, through Integration Hub. Loading the data puts it in an import set table, a staging area, before anything reaches a target table like Users or Incident. The columns of an import set table are created automatically from the data, so do not add them by hand. And by default, a scheduled job deletes import sets that are older than seven days, so staging tables do not keep growing.
Transform maps
A transform map is a set of field maps, which link fields of the import set table to fields of a target table. Every import into a production table needs at least one transform map, and a transform map can be reused for later imports to the same table. Auto map matching fields maps the fields that have the same names, and the mapping assist utility maps the rest, even one source field to several target fields. Field maps can also convert formats, like dates, and source scripts can calculate a value from the imported data. And transform scripts can run at set points, like before or after each row is transformed.
Coalesce
Coalesce lets an import update existing records, instead of creating new ones. When Coalesce is selected on a field map, the instance looks for a target record with the same value in that field: if it finds one, it updates it, and if not, it creates a new record. With no coalesce field at all, every imported row becomes a new record, and no existing record is updated. With several coalesce fields, all of their values must match before a record is updated. And coalesce only on fields with unique values, like an asset tag, because when several records match, only the first one is updated.
Running and scheduling imports
To run an import by hand, the admin loads the data, then selects Transform on the transform map, and a link leads to the imported records. Afterwards, review the import set, the import log, and the run history, even when no error was reported. A scheduled import, under System Import Sets, then Administration, runs a data source and its transform map at a regular interval, like every night. The scheduled import runs with the credentials of the user named in Run as. And the import scheduler role is equivalent to admin, since it can run scripts with administrator privileges, so grant it with care.
Recap
Let's recap. A data source defines where the data comes from, and loading puts it in an import set table, a staging area. A transform map links staging fields to target fields, and every import into a production table needs one. Coalesce updates the matching record, or creates a new one, and it belongs on fields with unique values. Without coalesce, every row becomes a new record. And scheduled imports run on their own, while the import scheduler role is as powerful as admin.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
The laptop spreadsheet is loaded into an import set table, but no laptop records exist in the target table yet. What must the admin do next?
- Add the missing columns to the import set table
- Load the same file a second time
- Run a transform with a transform map
- Wait for the scheduled cleanup job
Show the answer
Run a transform with a transform map
The data stays in the staging table until a transform map moves it into the target table. “Add the missing columns to the import set table” is not needed, and import set columns should never be added by hand. “Load the same file a second time” would only load the same rows into staging again. And “Wait for the scheduled cleanup job” would delete old import sets, without creating any target records.
Next month’s spreadsheet must update the existing laptop records, matched on their asset tag, instead of duplicating them. What should the admin configure?
- Coalesce on the asset tag field map
- A second transform map
- Coalesce on the model field map
- Delete the laptops before each import
Show the answer
Coalesce on the asset tag field map
Coalescing on the asset tag updates the laptop with the same tag, and creates a record only for a new tag. “A second transform map” would still create a new record for every row. “Coalesce on the model field map” matches many laptops of the same model, so only the first one would be updated. And “Delete the laptops before each import” would lose every reference and history attached to the existing records.
Brackenridge’s asset system exports a file every night, and the admin wants it imported every morning, without anyone stepping in. What fits?
- Load the file by hand every morning
- An LDAP data source
- A business rule on the import set table
- A scheduled import
Show the answer
A scheduled import
A scheduled import runs the data source and its transform map at a regular interval. “Load the file by hand every morning” needs someone every morning, which the admin wants to avoid. “An LDAP data source” is about directory data, not about when an import runs. And “A business rule on the import set table” would run when a staging record changes, after the data is already loaded.