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

How to Access Catalog Task Variables

sharvil Sheth1
Kilo Guru

I have some variables which are not accessible while submitting request, but accessible on sc task e.g.: contract number, serial number, lease end date.
Contract number is reference variable referencing to ast_contract table.

I want to pass this catalog task variables to the create record action to alm_asset table.

Contract Number = sc_task_contract_number.

Serial Number = sc_task_serial_number.

 

I tried using "Get Catalog Variables" but not working

1 ACCEPTED SOLUTION

sharvil Sheth1
Kilo Guru

Ya Got this,

 

1) We need to use "Wait for Duration" with 5-10 seconds.

2) We need to use "Get Catalog Variable" again and then pass it in flow.

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@sharvil Sheth1 

if your flow is with Service catalog trigger then you should be able to access those variables using Get Catalog Variables flow action

Please share screenshots of what you configured.

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

sharvil Sheth1
Kilo Guru

I am using sub flow

@sharvil Sheth1 

you can use subflow inputs, and then pass the variable value from main flow to subflow

the subflow will accept that input and then you can access those

please try that and let me know

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

tried but not working