Can I resuse a flow for multiple catalog items?

vidhya_mouli
Giga Sage

I have created a flow for approval of a catalog item. The process is same for multiple catalog items. However I am unable to use the same flow because the Template Catalog Items and Variable Sets field is mandatory. How do I make this generic to suit other catalog items.

 

 

Flow-Designer-Flow-Designer-Flow-for-IT-Catalog-Deliveries-Approval.png

8 REPLIES 8

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Once way to handle this is to use the same variable set for all the catalog items and in the variable set create UI polices on which one should be visible based on the catalog item.

This way it would be possible to use it in multiple flows.

 

Please mark my answer as correct based on Impact.

What if I have different variables for different catalog items? Can I still make it work?

It should work right as the variables will be hidden based on the catalog item you are selecting

 

Please mark my answer as correct based on Impact.

Manisha Reddy K
Mega Guru

Hi @vidhya_mouli ,

       Please create a custom action as shown below for getting the variables of multiple catalog items.

ManishaReddyK_0-1695898984640.png

    In the custom action, Just pass the triggered Requested Item as shown below.

ManishaReddyK_1-1695899060784.png

In the script step, check the catalog item and map the respective variables as follows.

ManishaReddyK_2-1695899146195.png

Now map the required output variables and also make sure the output variables are created in the output section of custom action