gs.getProperty in BR in Scope app

rahul_garg
Kilo Expert

Hi,

I am having problem to call gs.getProperty in BR in Scope app.

I am trying to set a value in BR Set Value Field using javascript:gs.getProperty("x_18xxx_xxxxxxx.group") but i am getting an error Function getProperty is not allowed in scope.

Am I doing something wrong? According to wiki it should work

Scoped GlideSystem API Reference - ServiceNow Wiki

1 ACCEPTED SOLUTION

rahul_garg
Kilo Expert

For some funny reason if I set the same in Script it works but it doesn't work in Set Value.


View solution in original post

3 REPLIES 3

veeresh3
Tera Expert

Hi,



Please check getEscapedProperty(String, Object) this function and if it's not working remove javascript prefix to the getProperty function.



Thanks,


Veeresh


rahul_garg
Kilo Expert

For some funny reason if I set the same in Script it works but it doesn't work in Set Value.


msm4
Mega Guru

Hi Rahul,



please refer this, GlideSystem - ServiceNow Wiki ,hope this helps you.