How to auto publish knowledge article created from incident when incident is closed.

E-E
Tera Contributor

Hi, 
When creating a knowledge article from incident, the article will be saved as Draft when the incident is closed, and in order to publish we need to go to the article record and press publish.

Instead, I am looking for a way to directly publish the article when the incident is closed. (skipping Draft, Review stage. )
Do I have to create a new Knowledge Base and create a new flow or is there some other way to do this? 
Would appreciate it if you could provide the steps for this as I do not have much experience on those functions.
Thanks.

7 REPLIES 7

Hi @Sandeep Rajput 
Thanks for your reply.

Based on your instructions I've edited the Incident Create Knowledge BR as attached. But the knowledge article created by incident is still saved as draft.
The workflow of the knowledge base used is the OOTB Knowledge Instant Publish.

Any ideas on why it isn't working and what I should do?

BR .png

@E-E Did you see any errors in the log? There is another method which you could use to publish the article. 

publishArticleById(tableName, articleId);

In your case you can modify the line number 18 as follows.

 


global.KnowledgeUIAction().publishArticleById('kb_knowledge',kbSysId);

Hope this works for you.

 

@E-E Do you need any further help on this topic? If not then please select the answer as correct.