The CreatorCon Call for Content is officially open! Get started here.

How to Retire multiple Knowledge articles

Donna Kunkle
Tera Contributor

Is it possible to retire multiple knowledge articles at once?  I tried selecting multiple articles from the list but when I choose Updated Selected, the option to retire is not available.

2 REPLIES 2

Mike_R
Kilo Patron
Kilo Patron

You'll need to create a UI Action for this. You can copy the other existing UI action but just relabel the Action name and check the box for List choice.

Mike_R_0-1669819652135.png

 

Ishaan Shoor
Mega Sage
Mega Sage

Either you can go through the approach that Mike has suggested above or the other way is to have a fix script which will be one time job to update articles to retired.


Sample script below:

 

var kb = new GlideRecord('kb_knowledge');
kb.addQuery('');  //Add your query here
kb.query();
if (kb.next()) {
  kb.workflow_state='retired';   // Moving to Retired state
  kb.update();
}

 

Hope this helps!
BR.
Ishaan Shoor