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

Hi Anirban,

I am very new to Integration Hub/Flow Designer. I tried your approach above it is working. Can you please help me with what script should be written in Action Designer to get the variables in normal readable form instead of the sys_id's. 

 

Thank you,

Nanditha

Muralidharan BS
Mega Sage
Mega Sage

Hi Gabriel,

There is no common action available to grab dynamic variables, but you can use the service catalog api in action designer to get the variable details of different items. 

Kindly mark my response correct and helpful if my suggestion resolved your query,


Thanks

Murali

Sudhanshu Talw1
Tera Guru

Hii Gabriel,

 

You can create custom action where input variable is a reference variable then u have to lookup records in the next step. Use item_option_name table to lookup records then return an array of string with variable name & use it as you wish.

 

Hope it helps!!

find_real_file.png

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can try creating custom action

input as catalog item sys_id

Output as the array of variables

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Gabriel Ho
Tera Contributor

Thank you together, youre solutions are maybe all right 🙂

Now I note, that I need the Variable in the step "create Catalog task" (attached)

 

Is there a way to put the variables in these field