background script for changing the author of multiple KB Articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 02:58 AM
Hi Team,
Could any one help me with the background script for changing the author of the multiple KB articles .
that Update All method is not working for me don't know why
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 03:15 AM
Hi Vyanktesh,
Can you share what is that you have used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 03:19 AM
Try below script
var kb = new GlideRecord("kb_knowledge");
kb.addEncodedQuery('giveyourqueryhere'); //update your encoded query here
kb.query();
while(kb.next()){
kb.author = 'sysid of the author';
kb.update();
}
Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 03:33 AM
you didn't share the script and what are you trying to achieve.
If my response helped please mark it correct and close the thread so that it benefits future readers.