No Flow Variable Support for Subflows in Flow Designer?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 05:30 AM
Hi all
I may need a little help from the community / ServiceNow on the Flow for Service Catalog Plugin:
I use the Service Catalog Flow trigger to be able to build flows for request fulfillment. When selected, this gives me access to the "Manage Flow Catalog Variables" option, where I can define additional variables to pass information from one catalog task to another. works great (or better: works as it always did with workflows).
As flows get bigger and more redundant, I consider it good practice to create a library of common building blocks in a scoped application. As actions go I'm fine, but unfortunately I cannot use Flow Catalog Variables in Subflows - which makes no sense to me. Since I have access to the "Create Catalog Task" Activity in a subflow, why not enable flow variables as well?
Is there a property or function I am missing to achieve this?
Thanks!
- Labels:
-
Request Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 05:40 AM
Hi Thilo,
It should work, when you choose only few catalog variables in the flow and try to choose remaining it will not work. But when you try to pull all variable in the flow then go to subflow > create catalog task > Input the catalog item and now pull the variables needed. This will get all variables value needed and will work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 06:15 AM
Thanks Murali,
but flow variables are different from item variables. they are created and are associated to requested items at flow runtime and therefor cannot be pulled from the item definition.
Regards, Thilo

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 11:48 PM
In addition, is there an option to select all exisiting requested item variables on a catalog task? I have a flow serving multiple items with different variables each and the catalog task's assignee should just hav access to all that are currently on the item.
thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2020 12:04 AM
HI Thilo,
You wanted to display all variables from different forms to the catalog task, if my understanding is right then,
Yes, you have to select all the variables first in the main flow using "get catalog variables"
You have to add another actions to "get catalog variables" for other forms.
Once this is done, you can go to create catalog variable and add the choose the variables to get displayed in cat task.
Kindly mark my response correct and helpful if my suggestion resolved your query,
Thanks
Murali