Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to Change Knowledge Article state from Retired to Published?

boppishettypriy
Kilo Contributor

Help me out to edit an article state...

2 REPLIES 2

Gowrisankar Sat
Tera Guru

Hi Priyanka,



As per existing workflows, if an article is retired a new article has to be created in its behalf.



Knowledge workflows



But if you want only the state to be updated, just run a background script to update the state. But strictly speaking this is not recommended.



var gr = new GlideRecord("kb_knowledge");


gr.get('<sys_id_of_knowledge_article>');


gr.workflow_state='published';


gr.update();


Thank you 🙂 Gowrisankar