- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 06:42 AM
I want to change 'Authored by' text on KB articles, where can I modify that?
Solved! Go to Solution.
- Labels:
-
Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 06:56 AM
This can be changed in the Body HTML template of the Widget. eg. KB Article Page
​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 07:26 AM
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();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2022 10:57 PM