Dynamic Filter to check if a assigned to user is in a group

sndev453
Tera Contributor

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.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************

They want a dynamic filter that looks if the assigned to is a member of a particular group for reports.