- 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 06:54 PM
Hi
please remove the "else" step and put the "Assign Subflow Output" with "Field Indicator=No" at the end.
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.