Flow Designer Sub-Flow not able to Publish

John Prouty
Kilo Guru

I wrote a simple Sub-Flow utility to convert a record count to a Yes / No Choice field.  I modeled it after other sub-flows that I have successfully created.  This one, however, will not let me publish it and it give no error messages to indicate why the Publish button is disabled.

Here is the "code":

find_real_file.png

find_real_file.png

find_real_file.png

Details:

find_real_file.png

find_real_file.png

2     Else

find_real_file.png

What am I missing?  What did I do wrong?  Why won't Publish become enabled?

1 ACCEPTED SOLUTION

Sangiliraja Pal
Kilo Expert

Hi John,

 

The subflow created is not having any action steps. It has inputs, outputs and flow logic only.  for Subflow to be available for testing and publish it should atleast have one action step.

find_real_file.png

 

It is documented in https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/task/create-subflow.html

 

May be you should write an action step to calculate record count as first step then use flow logic to set the output variables in the flow.

 

Hope this helps

 

Thanks

Sangiliraja.p

View solution in original post

5 REPLIES 5

Kieran Anson
Kilo Patron

Hi,

Initial question is whether you're an admin or not as flow designer does have degree of role level access that allows for the designing of flows but not necessarily the publishing.

I am the admin.

Sangiliraja Pal
Kilo Expert

Hi John,

 

The subflow created is not having any action steps. It has inputs, outputs and flow logic only.  for Subflow to be available for testing and publish it should atleast have one action step.

find_real_file.png

 

It is documented in https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/task/create-subflow.html

 

May be you should write an action step to calculate record count as first step then use flow logic to set the output variables in the flow.

 

Hope this helps

 

Thanks

Sangiliraja.p

I have an action that I use to increment (or decrement) an integer parameter.  I used that action and set it to add 0 to the record count.  Then the Sub Flow was able to be published.  Thanks!