Performance analytics report script issue

Sharada N S
Tera Contributor

Hi Team, 
could you help me with the script used in PA report as we can't use the current value to it (value is the field referring to facts table)
(Please refer screenshot)

SharadaNS_0-1711469606658.png

 


var values = function(x){
var gr = new GlideRecord('sys_choice');
gr.addEncodedQuery('name=sn_compliance_policy_exception^element=substate^language=en^inactive=false');
gr.addQuery('label',x);
gr.query();
if(gr.next())
return gr.value;
};
values(current.value);

 

Thanks

0 REPLIES 0