How can i automatically publish an article in a knowledge base

joaosantos
Mega Expert

I am creating a knowledge article from a business rule but i need to publish it the instant i create it, is this possible?

6 REPLIES 6

Harish KM
Kilo Patron
Kilo Patron

you need to add this to the code


current.workflow_state='published';


current.insert();


Regards
Harish

amlanpal
Kilo Sage

Hi Santos,



Please navigate to Knowledge Bases and open the required knowledge base in which you want instant publishing of article. Then select the 'Knowledge - Instant Publish' in the 'Publish Workflow' field. That is a OOB workflow available in the instance.



I hope this helps.Please mark correct/helpful based on impact


i selected that workflow for a Knowledge Base that i created but it still wants an approval action


Hi Santos,



This should work. Please make sure that the Business rule is creating the knowledge under the same Knowledge base in which you have selected 'Knowledge - Instance Publish' in the 'Publish workflow' field.



I hope this helps.Please mark correct/helpful based on impact