how can i modify the Kb Article number in my instance.(its non editable showing for me)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 05:49 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 07:28 AM - edited 09-05-2023 07:33 AM
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();
}