Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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