How do you change a knowledge article number?

Lindsey Parker
Mega Contributor

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?

1 ACCEPTED SOLUTION

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.

View solution in original post

7 REPLIES 7

I was able to do this by accessing "Fix Scripts" from the navigation panel in the "System Definition" section.

This worked and was super easy.  Thank you so much!

TriWorks
Tera Contributor

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!