gliderecord script

saini123
Tera Contributor

Hi,

 

I have a piece of code whihc find out the active users with no roles and its working perfectly

var x = new GlideRecord('sys_user');
x.addEncodedQuery('active=true^sys_id!=javascript:getRoledUsers();');
x.query();
while(x.next()){
    gs.print(x.name);
}
 
can someone please explain what this highlighted code is doing? getRoledUsers() is some kind of fucntions?
 
Thanks
1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

 Hi, this invokes a javascript call of the function getRoledUsers()
which is an OOB global business rule

/now/nav/ui/classic/params/target/sys_script.do%3Fsys_id%3Da94e5832c0a8006621746e5b2c12c44a

View solution in original post

1 REPLY 1

Tony Chatfield1
Kilo Patron

 Hi, this invokes a javascript call of the function getRoledUsers()
which is an OOB global business rule

/now/nav/ui/classic/params/target/sys_script.do%3Fsys_id%3Da94e5832c0a8006621746e5b2c12c44a