- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2014 02:10 PM
I exported KBs (in XML) from one ServiceNow instance and imported to into another instance. The import process worked perfectly with one exception: KB numbers weren't created for the new inserts. Is there a way to populate the KB numbers without recreating each of them?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2014 02:33 PM
If you're not concerned with what the previous numbers used to be, you can use this SNGuru solution to set the numbers as Brad suggests.
http://www.servicenowguru.com/scripting/numbering-existing-records/
If you need the numbers to be identical, then you'll probably have to set up a transform map of some sort and import them from the other system.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2014 02:14 PM
You could run a background script that queries all kb articles with a blank number field and use the getNextObjNumberPadded() function to set the number.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2014 02:33 PM
If you're not concerned with what the previous numbers used to be, you can use this SNGuru solution to set the numbers as Brad suggests.
http://www.servicenowguru.com/scripting/numbering-existing-records/
If you need the numbers to be identical, then you'll probably have to set up a transform map of some sort and import them from the other system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2014 02:49 PM
Worked like a charm. Thanks!