Dynamic Filter to check if a assigned to user is in a group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:59 AM
Hello,
I have a requirement to create a dynamic filter to check if an assigned to for incidents is part of a particular group and when I select the filter it returns no results in my report. I used gs.getUser().isMemberOf("ServiceNow Test");. I confirmed this script returns a value in a business rule but when I try to apply it to a report with the dynamic filter it shows no results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 03:52 AM
Hi @sndev453
What is your case, you want on report or where. May be Assigned to me is UI Action, which can help you to get your work done.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 09:58 PM
They want a dynamic filter that looks if the assigned to is a member of a particular group for reports.