how can i modify the Kb Article number in my instance.(its non editable showing for me)

bhupendra paree
Tera Contributor

Hello All,

 

I need to modify number of some KBs imported from another instance. (Due to duplication of  KB numbers).

Please provide suggestions on , How can i rename the number field on KB form/List View.

I tried disabling write ACLs  on number field as well but no luck yet.

 

Advance thanks.

 

1 REPLY 1

Alex Tod1
Kilo Sage

Hi @bhupendra paree,

I am not sure what is the best practice in your case, but you can force the name through a background script, find your record and set a new name, the code would look something like this: 

var gr = new GlideRecord('kb_knowledge');
gr.addEncodedQuery(); // you can add from filter
gr.query();
if(gr.next()) {
  gr.setValue("number", "KBXXXXXXX");
  gr.update();
}