Flow Designer - Use flow for multiple catalog items, how do I use 'Get Catalog Variables'?

Mark Cheek
Tera Contributor

I'm trying to create a re-usable Flow in Flow Designer, but I'm unsure how that will work when using the 'Get Catalog Variables' step.

Previously in Workflow, you could access catalog item variables through script using something like

current.variables.u_variable_name

In doing this, you could re-use a workflow for multiple catalog items, provided they all used the same variable set or had a specific variable all with the same name.

I'm not sure how to do this in Flow Designer, because within the 'Get Catalog Variables' step, you have to define the specific catalog item you're wanting to pull variables from (pictured in screenshot below). I'd like to use one Flow to link to multiple catalog items.

So knowing what I'm trying to do, how would I go about doing this?

find_real_file.png

1 ACCEPTED SOLUTION

Sebastian R_
Kilo Sage

Do you have the same variables on all catalog items? Then you can easily select the variables from one of the catalog items.

Therefore it would be the best to share the variables via an variable set. We normally create a template catalog items for it which includes all the necessary variable sets.

View solution in original post

4 REPLIES 4

Sebastian R_
Kilo Sage

Do you have the same variables on all catalog items? Then you can easily select the variables from one of the catalog items.

Therefore it would be the best to share the variables via an variable set. We normally create a template catalog items for it which includes all the necessary variable sets.

So even though the example above has "Allegro Access" as the template catalog item, I could create a different catalog item, attach it to this flow, and it will work assuming the new catalog item has a variable with the same name?

I just tried it out... looks like it does work. I guess the way it looks, it makes you think that action is only available for a single catalog item

I was just wondering about this too; thanks for confirming for us!

Alternately you can also follow the documentation to create flow specific variables and include those in a variable set for each catalog item.

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/flow-designer/task/create-flow-catalog-variables.html

Thanks,

Dom