- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 02:25 PM
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":
Details:
2 Else
What am I missing? What did I do wrong? Why won't Publish become enabled?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 06:47 PM
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.
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 02:31 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 03:43 PM
I am the admin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 06:47 PM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2021 10:48 AM
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!