The CreatorCon Call for Content is officially open! Get started here.

Pass variable parameter from catalog item to flow

Nico12
Mega Sage

Hi,

I have a catalog item with one single variable.

User can chose application from cmdb_ci_appl.

After submitting, the task should automatically run a script that will get the application the user enter.

I was thinking using a flow but i don't know how to pass the variable name from the Task to the script in the flow

I have a line like this :

var application_name = ["NAME OF THE APPLICATION"];

The application name chosen by the user in the catalog item should goes here in the flow script.

 

Any idea how to achieve this ?

 

Regards,

1 ACCEPTED SOLUTION

Nico12
Mega Sage

Update to say that i succeed.

 

I create an input variable like this :

find_real_file.png

 

and called it in the script :

find_real_file.png

 

Thanks for the helps!

Regards

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

Hi Nico,

You can leverage get catalog variable action to get the catalog variables and use those data pills for the subsequent action.

Get Catalog Variables action

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Harish KM
Kilo Patron
Kilo Patron

Hi you need to use get catalog Variables action. Once you use this action and select catalog item.you can see all the variables on right side jus drag and drop the variable you need

Regards
Harish

Nico12
Mega Sage

Hi,

I add the Get Variable action.

find_real_file.png

 

But how i pass this variable into the script ? There is no options to do it.

find_real_file.png

 

Regards

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Is that a custom action?

If yes then it should have some input variable then only you can send the data

Regards
Ankur

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