how to publish retire knowledge articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 03:39 AM
Hi All,
I have knowledge article which got retired due to no response from the approver for 30 days, I have that knowledge articles to get activated back,
someone please help on this will really be appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 06:57 AM
I suggest you look at the Publish Revision step in the Knowledge - Publish Knowledge workflow. I am guessing you could create a UI Action that just does the same steps as that.
Effectively, it is just setting the following values on the record:
workflow_state = "published";
retired = "";
published = new GlideDate();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 06:27 PM
Hi Mohammed,
If you reset the workflow via script, then it would go back to Draft so you would need redo the approval to get it from Draft to Published. Jumping from Retired to Published might get you in trouble when it comes to an audit because there is no audit trail HOW it got back in to Published without anyone acknowledging the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 11:42 PM
Thanks for the support,
Could you please help me in sharing the reset script for the workflow?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 06:47 AM
Hi Mohammed,
Try this in a UI action. (UNTESTED)
Name: Reset
Table: kb_knowledge
Active: true
Show Insert: true
Show Update: true
Form button: true
Condition: current.workflow_state == 'retired';
Script:
new Workflow().restartWorkflow(current, true);
action.setRedirectURL(current);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2016 06:20 AM
hi Mohammed,
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View.
Thank you