Where can I change 'Authored by' text on KB articles ?

Community Alums
Not applicable

I want to change 'Authored by' text on KB articles, where can I modify that?

find_real_file.png

1 ACCEPTED SOLUTION

Averell
ServiceNow Employee
ServiceNow Employee

This can be changed in the Body HTML template of the Widget. eg. KB Article Page

find_real_file.png​

 

View solution in original post

3 REPLIES 3

Averell
ServiceNow Employee
ServiceNow Employee

This can be changed in the Body HTML template of the Widget. eg. KB Article Page

find_real_file.png​

 

sameeralikhan
ServiceNow Employee
ServiceNow Employee

You can use the script to update them. Assuming the users who have left the organization are still existing as inactive users in the system, try this code.

var gr = new GlideRecord("sys_user");
gr.addInactiveQuery();
gr.query();
var inactiveUsers = [];
while(gr.next()) {
inactiveUsers.push(gr.getValue("sys_id"));
}
gs.print("inactive users are"+inactiveUsers);

var gr1 = new GlideRecord("kb_knowledge");
gr1.addQuery("author","IN",inactiveUsers);
gr1.query();
while(gr1.next()) {
 gs.print("kb article is"+gr1.getValue("number"));
 gr1.setValue("author","62826bf03710200044e0bfc8bcbe5df1"); //update the sys_id of the user you want to set the author to.
 gr1.update();
}

Andrea Elms
Kilo Guru

Hi,

You can also simply navigate to the KB via Administration and change the Author from the list or open the article and change the author there.

find_real_file.pngfind_real_file.png