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

Brian Lancaster
Tera Sage

The numbers are generated by the system. It would not be a good idea to change it.

Lindsey Parker
Mega Contributor

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?

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.

Where in ServiceNow would an admin go to run a script like that?