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

Articles in Draft stage

gopunkutty
Kilo Contributor

In the list of published article list there are almost 350 plus articles in draft stage which are not available for the employee in EC pro. I wanted to know how can we retire the articles without the authors publishing it.

 

1 REPLY 1

M Iftikhar
Giga Sage

Hi @gopunkutty

 

Create a fix Script "Retire Draft Article":

var kbArticle = new GlideRecord('kb_knowledge');
kbArticle.addQuery('workflow_state','draft');
kbArticle.setValue('workflow_state','retired');
kbArticle.setWorkflow(false);
kbArticle.updateMultiple();

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.