Retiring multiple kb articles at one time

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 11:47 AM
We have about 400 kb articles that we want to retire. Is there any easy way to do a mass retirement of all of the items that is no longer required?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 10:59 AM
Maybe. The instructions I had above was probably done on Eureka, so it may be something that has been closed since then. It is now greyed out and uneditable in my Istanbul instance. In my Geneva instance, I can mass edit the workflow field, so this must be rather new.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:30 AM
Workflow field is not editable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2017 03:27 AM
Hey, you can modify your UI action to be visible from the "list choice". and then select all and do mass retire, can be done up to 100. By this way, it will follow your workflow process as well and you are not doing anything incorrect which might happen using background script.
Please mark the answer correct or helpful if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2020 09:24 PM
Hello Ashish,
I enabled list choice filed in UI action. But it's not working. Can you please let me know if is there any other solution.
Thanks,
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2017 06:28 AM
Try this fix script/background script
var kb = new GlideRecord('kb_knowledge');
kb.addEncodedQuery('ADD YOUR QUERY HERE');
kb.query();
if (kb.next()) {
//Retiring articles
gs.print(kb.number);
kb.workflow_state='retired'; // Moving to Retired state
kb.update();
}
Thanks,
Sai