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.

Current.variables.<variable name> is not working in reference qualifer in catalog item ServiceNow

Rajesh44
Tera Expert

Hey Guys,

Reference qualifier is not working if I try to get dynamic value by using current.variables.<variable name>. But if I give a static value then it is working fine. Help me to sort this out.

Regards,

Rajesh 
 


17 REPLIES 17

MrMuhammad
Giga Sage

Hi,

Can you share the sample record from Choice table? I want to see Label and value for at least one record.

Also, can you try using to what value select box is returning in the banner?

javascript: gs.addInfoMessage(current.variables.new_hires_roles_csis);

The value returned should match the value stored in the choice table.

Please let me know so that I can help you further.

Regards,

Muhammad

 

Regards,
Muhammad

Hi,

The gs.info is returning the undefined message

Regards,

Rajesh

There was a type in script. Please try below for info message.

javascript: gs.addInfoMessage(current.variables.new_hires_role_csis);
Regards,
Muhammad

It is returning null value

I tried with other variables too still returning null value.

 

Can you try changing the value of Lookup Value field from Label to Value?  

find_real_file.png

Regards,
Muhammad