- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2018 07:28 AM
We have a knowledge article in production that somehow has a URL set as the Knowledge Article Number. Is it possible to change the Number after the KA has been published?
Solved! Go to Solution.
- Labels:
-
Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 02:53 AM
Greetings Lindsey,
Edited the number on the KB record, will be protected via an Access Control, making it read only. This would need to be adjusted to allow a user to edit that field. The other option is to have an Admin script the fix
Open KB record - right click header - copy sys_id
in background script:
var fixNum = new GlideRecord("kb_knowledge");
fixNum.get("paste_sys_id");
fixNum.number = "whatyouwantnumbertobe";
fixNum.update();
Roughly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2018 07:31 AM
The numbers are generated by the system. It would not be a good idea to change it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2018 08:17 PM
Yes, but in this case we somehow got a "number" that was not generated by the system but is instead a URL.
We don't make a practice out of changing knowledge article numbers, but is it possible for this type of situation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 02:53 AM
Greetings Lindsey,
Edited the number on the KB record, will be protected via an Access Control, making it read only. This would need to be adjusted to allow a user to edit that field. The other option is to have an Admin script the fix
Open KB record - right click header - copy sys_id
in background script:
var fixNum = new GlideRecord("kb_knowledge");
fixNum.get("paste_sys_id");
fixNum.number = "whatyouwantnumbertobe";
fixNum.update();
Roughly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2018 09:06 AM
Where in ServiceNow would an admin go to run a script like that?