
- 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-08-2022 09:04 AM
Try something like this and tweak accordingly. mark my answer as correct or hit like.
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 12:55 AM
That assignment group is "External Vendors", should I add in-place of current.assignment_group??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 01:07 AM
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 02:45 AM
Thanks bro...Tanvi Jain, Jyoti p dalvi........all left this team. It's been very hard without proper mentors.