Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to pass variable from catalog item to a flow

thebananek
Tera Contributor

I have a catalog item [sc_cat_item] and a variable [item_option_new] in it. I want to use that variable in a flow. How can I pass that variable to that flow?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@thebananek 

You can use "Get Catalog Variables" flow action and access the variables submitted and get their values.

Get Catalog Variables action 

AnkurBawiskar_0-1746702399141.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

7 REPLIES 7

J Siva
Kilo Patron
Kilo Patron

Hi @thebananek 
Check the below doc/video to configure flow on the service catalog.
https://www.servicenow.com/docs/bundle/xanadu-build-workflows/page/administer/flow-designer/task/cre...
Regards,
Siva

Sorry but variable elements [item_option_new] are not available in data pill

thebananek_0-1746701501730.png

 

J Siva
Kilo Patron
Kilo Patron

@thebananek May i know what's your exact requirement?

I have catalog item and variable which is reference to other custom table.

thebananek_0-1746702780528.png

On the form user selects record from custom table. 

thebananek_1-1746702849628.png

I want to pass that record to a flow. Then I want to use that record to run a subflow and then underpin the catalog item by the flow.