multi row variable set - variable reference qualifier

eyal abu hamad
Mega Sage

Hey,

I have a reference  variable on alm_asset table on multi row variable set, I want the reference qualifier to be based on the requested for that I have on the task form.

for example : 
the requested for on the task form is from stockroom A.
I want to show al the alm_assets that are on stockroom A in the variable on the multi row variable set.

I'm having difficulty reaching the requested from on the variable form

eyalabuhamad_0-1733748446690.pngeyalabuhamad_1-1733748464624.png

how can I send to the script include the requested for from the task itself ?

5 REPLIES 5

Deepak Negi
Mega Sage
Mega Sage

the argument "requested_for" in the qualifier needs to be replaced with current.variables.requested_for

Juhi Poddar
Kilo Patron

Hello @eyal abu hamad 

Try this reference qualifier:

javascript:new HardwareUtils().GetFromStockAssetBundle(current.variables.requested_for);

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"

 

Thank You
Juhi Poddar

the value that pass is null

Ankur Bawiskar
Tera Patron
Tera Patron

@eyal abu hamad 

requested for on sc_task probably comes from RITM.Requested For

is there a field on sc_task which agent will fill and the MRVS should filter the assets for that user

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