Reference qualifer with current.variables returning undefined value

Sagar Rd
Tera Contributor

Hi 

 

I am using a reference qualifier condition on a variable in the multi row variable set "javascript: new global.skilUtil().getUser(current.variables.requested_for);" and requested_for is a variable but the current.variables.requested_for is actually sending undefined value. Could you please help me is there anything wrong and need to be changed.

 

Thankyou

Vishal Jaswal
Giga Sage

Hello @Sagar Rd 

Try below:

 

javascript: new global.skilUtil().getUser(current.row.requested_for);

 

 

 


Hope that helps!

HI @Vishal Jaswal 

 

Thanks for the response, it still undefined below is the reference qualifier -- javascript: new global.skilUtil().getUser(current.row.requested_for);

 

Thank you

Chaitanya ILCR
Giga Patron

Hi @Sagar Rd ,

The current in the MVRS refers to just the MVRS.

you can refer to the Scenario 2 in the below blog and create a onload client script on the MVRS and store the 

requested_for value as a session client data and give it a unique name

 

https://www.servicenow.com/community/now-platform-articles/yes-you-can-effectively-set-or-update-a-r...

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

Thankyou @Chaitanya ILCR