
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 07:24 AM
Need a before Query business rule which checks for a group membership of the currently logged-in User and returns some filtered records from sys_user_group table having field value Hidden=true.
Solved! Go to Solution.
- Labels:
-
Major Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 09:18 AM
if(gs.getUser().isMemberOf(current.assignment_group)){
var gr = new GlideRecord("sys_user_group");
gr.addEncodedQuery("u_hidden=true") // copy query link from sys_user_group_table
gr.query();
{
add remaining logic
}
}
Mark Correct/ helpful if this helped you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2022 02:56 AM
It worked , Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2022 03:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2022 07:13 AM
Hello
Looks like you have incorrectly marked other answer as correct instead of mine below as you stated that my logic had worked fine, no need for gliderecord in BR or else it might affect performance but if my logic didn't work then fine.
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2022 03:28 AM
Hello
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 09:18 AM
if(gs.getUser().isMemberOf(current.assignment_group)){
var gr = new GlideRecord("sys_user_group");
gr.addEncodedQuery("u_hidden=true") // copy query link from sys_user_group_table
gr.query();
{
add remaining logic
}
}
Mark Correct/ helpful if this helped you