Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

OOB Publish article action is not working in custom flow

Vedavalli
Mega Sage

Hi

In knowledge management we have approval publish/retire, instant publish/retire . So my requirement is for some knowledge articles based categories it should go approval process for some articles based on category it shouldn't go any approval process. I configured flow  if i use publish article action is not working(article is not publishing but flow is getting triggered)
I need help on this can someone help

2 REPLIES 2

sarves
Kilo Explorer

Hello,

Your flow is triggering correctly, but the publish action is not changing the article status. First, check whether the user running the flow has the required Knowledge permissions to publish articles. Also verify that the article category condition is evaluated correctly before calling the publish action. For categories that need approval, route them through the approval publish flow, and for categories that should bypass approval, use the instant publish configuration rather than only using the publish action in a custom flow.

robert28hull
Kilo Explorer

To fix this, check your flow's execution order and conditions, as the publish action often fails silently if the article is stuck in a pending state or if the user executing the flow lacks the itil or knowledge admin role required to bypass review. Ensure your flow includes a conditional branch that checks the category, routes articles requiring approval through the formal approval workflow, and uses a direct Update Record action to set the workflow state to published (or uses the correct script API like new KBVersioning().publish()) only for categories that bypass approval. Verify success by triggering the flow for both an approval-required category and an instant-publish category, confirming the former enters the approval queue while the latter immediately updates its state to published without errors in the system logs.