- 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-09-2018 09:26 AM
I was able to do this by accessing "Fix Scripts" from the navigation panel in the "System Definition" section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2018 09:26 AM
This worked and was super easy. Thank you so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2021 09:43 AM
This post is from some time ago but it was very helpful. I was able to use the script you referenced to update a handful of Knowledge articles that had been imported with duplicate (pre-existing) KB #'s.
My problem now is the Knowledge Summary # no longer matches the Knowledge Article # (so when you search on the 'old' # from the client portal, the article in question still displays in Search results). I need to update the 'summary #' of the article to match the new article #.
I've played with modifying the script from above but it doesn't work and I don't know why.
var fixNum = new GlideRecord("kb_knowledge_summary");
fixNum.get("sysID");
fixNum.number = "newNumber";
fixNum.update();
Clearly I've missed the mark but does anyone have suggestions for my syntax? Thanks!