Dynamic Filter Options not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 12:52 PM
The only value which works for the script field within Dynamic Filter Options which functions is gs.getUserID().
I'm trying to use the option for a report source for filtering.
If I do:
gs.getUserID()
No problem:
If I do:
gs.getUser().manager
// OR
new MyManagerUtil().Get()
Nope:
Here is script include:
100% works fine in background script:
gs.info(new MyManagerUtil().Get());
// output: <sys_id>
Please inform of secret directions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 10:07 PM
Hi @42sb
PFB the solved community post with similar requirement. You can follow the same by doing necessary modifications as required.
https://www.servicenow.com/community/itsm-forum/i-want-to-create-a-report-listing-incidents-created-...
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 10:25 PM
please use client callable script include for this
check this link with all the steps
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