- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 09:52 AM
Hey all,
I'm hoping to get some suggestions on how to handle the importation of a CSV file into ServiceNow.
I am importing an Excel CSV file into ServiceNow, however, I'm trying to setup some "rules" to manage the importation of the CSV file. What I mean by that is basically the following...
1) If the Name in the import record doesn't match a record with the same Name in the target field, then I want it to reject that record.
2) If the county, state or country name in the import record isn't in the same format as the target record (i.e. state code (AL) instead of being spelled out (Alabama)), then reject that record.
3) If the state in the import record matches a certain state (such as Hawaii or Alaska, etc.), then it is to set another field in the target record with a certain value.
I was thinking maybe there is a way to handle this in the transition map, maybe by scripting? If so, are there any leads on how to handle this scripting in ServiceNow? Is there any way to notify the person importing the file as to what records are rejected and maybe even why?
Any help would be appreciated.
Take care,
Mat G.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 04:26 PM
Hi, I would look at a before transform script to validate each rows data\fields, setting ignore = true of you do not want the import\update to proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 04:26 PM
Hi, I would look at a before transform script to validate each rows data\fields, setting ignore = true of you do not want the import\update to proceed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 05:58 PM
1. Use before transform script.
2. You can use coalese for Name field.
Also please read scripting in Transform map so you will get better idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 06:16 AM
Thank you both. I will look into those options and re-read up on the scripting in the Transform map.