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

Mohith Devatte
Tera Sage
Tera Sage

Hello,

Two things

1) Did you use the correct back end name of the variable?

2)which type of variable is it?

Hi @Mohith Devatte 

Yes, I put the correct backend value and it is a select box type field.

 

NOTE : As I already mentioned if I give static value instead of getting a dynamic variable vaule it is working fine in that case.

Hello Rajesh 

Okay then try to remove semi colon at the end and use current.variables.yourvairablename.getDisplayValue()

please mark my answer correct if it helps you

Hi @Mohith Devatte ,

Tried this but not working.

Regards,

Rajesh