Flow Designer - use "Variables" from current Catalog ITEM

Gabriel Ho
Tera Contributor

Hey,

we deploy currently in our company a Global Service Catalog wit more than 200 Items.

I have currently the issue, that I need for each Catalog Item "static" Action for "Get Catalog Variables"

So I need for all 200 Catalog Items 200 specific Flows.

Is it possible to get e.g. all Variables "dynamic" from the current chosen Catalog Item?

 

 

Thank you very much

15 REPLIES 15

Anirban Roy
Mega Guru

Hi,

Most probably you need to write a custom action.
Pass catalog item as input and you can return the variables as output.

Finally, manipulate the output variables in the subsequent path.

 

Regards,

Anirban

Adding some screenshots, might be helpful -

Step 1:

Create a custom action with input as the catalog item sys_id

find_real_file.png

Query the variables for the catalog item(catalog item value is passed from input)

find_real_file.png

Store the output of records in a variable

find_real_file.png

 

Step 2:

Call the action from a flow -

In this example, I have simply added the result inside the 'description' field of the RITM.

find_real_file.png

 

Step 3:

Run a test

find_real_file.png

Notice the variables returned for the catalog item (as sys_ids).

You may choose to return as an object using script in the action designer.

 

Please mark the answer helpful/ correct, if it helped.

Regards,

Anirban

Hey Anirban,

thank you for support.

I think we are on the right way.

I think that I need a other solution...we want to work in our Service Catalog Requests with "cTasks" also we need the Variables in the cTask (see Attachment)

 

If I create this Custom Action, I dont got the Catalog Variables.
is there any option?

Hi,

I believe for this custom action may not help since it would require you to push the variables from left to right

this might be one of the limitation of flow designer. need to explore

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader