Data Source - ServiceNow Helpdesk
Data Source - ServiceNow Helpdesk
Contents [hide]
Mapping Assist
Create a plan to map the source file columns to the target table columns
Data Sources
Data sources define what data should be imported. Only admin users can create data
sources.
Data sources:
https://servicenowhelpdesk.com/data-source/ 1/7
7/6/22, 7:21 PM Data Source - ServiceNow Helpdesk
CSV
JDBC
FTP
HTTP
XML
Navigate to System Import Sets > Administration > Data Sources to create a new
data source record.
Run a Transform to move data from the staging table to the target table
https://servicenowhelpdesk.com/data-source/ 2/7
7/6/22, 7:21 PM Data Source - ServiceNow Helpdesk
Load Data
Navigate to System Import Set > Data Source and open the newly created data source.
Attached excel sheet and click on related link “Test Load 20 Record”
Go to related list named “Transform” and click on “New” button to create a new transform
map.
Click on Auto Map Matching Fields related link to auto map the fields or click on
Mapping Assist to manual field map.
Update coalesce filed to True for an attribute so that if system will look for the record based
on coalesce field value. It will update if find the match else create new record.
https://servicenowhelpdesk.com/data-source/ 3/7
7/6/22, 7:21 PM Data Source - ServiceNow Helpdesk
In the Specify Import set and Transform map form, verify that the Transform Map to run is
in the selected maps, run in order slush bucket. Click the Transform button.
The Progress page shows the transform’s State and Completion code. A Completion
code value of Success does not mean the records imported correctly. The Completion
code indicates whether the transform executed successfully and is not indicative of the data
integrity of the records.
Click the Import log link to see if there were errors with the data. In the example, the
transform and import was successful.
https://servicenowhelpdesk.com/data-source/ 4/7
7/6/22, 7:21 PM Data Source - ServiceNow Helpdesk
Click on Transform History to see the state like how many got
inserted/updated/skipped/Ignored/Errors
To create a Transform Event Script, switch to the Transform Scripts related list in a
Transform Map and click the New button.
The When option in the Transform Script trigger specifies when in the transformation
process the script should run.
https://servicenowhelpdesk.com/data-source/ 5/7
7/6/22, 7:21 PM Data Source - ServiceNow Helpdesk
onStart: executes at the start of an import before any rows are read
onAfter: executes at the end of a row transformation and after the source row has
been transformed into the target row and saved
onBefore: executes at the start of a row transformation and before the row is
transformed into the target row
onChoiceCreate: executes at the start of a choice value creation before the new choice
value is created
onComplete: executes at the end of an import after all rows are read and transformed
onReject: executes during foreign record or choice creation if the foreign record or
choice is rejected. The entire transformation row is not saved.
When coalescing, the requirement might be to update only records that match and not
insert any new records. To meet the update records only requirement requires an onBefore
Transform Script. The onBefore script executes after ServiceNow has determined whether
there is a matching record in the target table and before the insert happens
The ignore Boolean variable is automatically created. When true, the ignore variable stops
the transformation process for the source data row.
https://servicenowhelpdesk.com/data-source/ 6/7
7/6/22, 7:21 PM Data Source - ServiceNow Helpdesk
https://servicenowhelpdesk.com/data-source/ 7/7