Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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