Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Reference qualifier with catalog item

Priya75
Tera Contributor

Hi All,

 

I have a variable. name "ABC" it's a choice list, and another variable which is a List collector name "BCD". So variable BCD depends on ABC variable.

 

So I have used a reference qualifier in BCD variable.

 

javascript   new ScriptIncludeName.FunctionName(current.variables.u_bcd);

 

The script include is client callable and when i checked it is coming as empty. any idea how can get desired values..

 

 

 

 

12 REPLIES 12

Neetu1999
Tera Contributor

Hello @Priya75 
Please use below format to call script include in reference qualifier

javascript   new ScriptIncludeName.FunctionName(current.variables.u_bcd);


javascript : new nameofyourscrptinclude().FunctionName(current.variables.u_bcd);

Neetu1999
Tera Contributor

Hello @Priya75 ,
It seems you are missing the () after the first function call. So it should be: 
Hello @Priya75 
Please use below format to call script include in reference qualifier

javascript : new scriptincludename().FunctionName(current.variables.u_bcd);

that is already there , i forgot it here.