- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2025 12:11 AM
I want to create a report listing incidents created by members of a specific group.
To do this, I'm creating "Dynamic Filter Options."
However, the above settings do not work...
Do you know why? I'd appreciate any advice.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2025 01:00 AM - edited ‎04-21-2025 01:01 AM
Hi @ayano
Create one client callable script include and add your logic there. PFB the sample dynamic filter.
Script include:
Note: Remove the Object.extendsObject(AbstractAjaxProcessor, from your script include.
var oneOfOCCGroupMembers = Class.create();
oneOfOCCGroupMembers.prototype = {
initialize: function() {},
getUser: function() {
var userArr = [];
var group_mem = new GlideRecord('sys_user_grmember');
group_mem.addQuery("group.name", "Help Desk"); //REPLACE WITH YOUR GROUP NAME
group_mem.query();
while (group_mem.next()) {
userArr.push(group_mem.getValue('user'));
}
return userArr;
},
type: 'oneOfOCCGroupMembers'
};
Dynamic filter option:
new global.oneOfOCCGroupMembers().getUser()
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2025 12:20 AM
please use client callable script include for this and not business rule
check this link
Create your own Dynamic Filters
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2025 12:54 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2025 09:17 PM
I believe I also answered your question in my 1st response to use client callable script include.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2025 08:06 AM
Any update to this?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader