Dynamic filter is not working when using system property in script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Dynamic filter is not working when using system property in script include
Code:
And I have created the dynamic filter correctly.
Please suggest something because I have been restricted to use the sys id directly in code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Dynamic filters run in the script sandbox which disables access to certain capabilities, these are documented below
https://www.servicenow.com/docs/r/api-reference/scripts/script-sandbox.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
What should I do then?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
It doesn't work with dynamic filter
workaround is to query and get the value of property
Dynamic Filter Option with gs.getProperty()
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏