- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 08:10 PM
Is this possible to filter the field of reference sys_user into same Region of Requested For ?
Unfortunately this ain't work.
Sample Script:
Script Include:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 08:53 PM
The link I shared shows how to perform the recursion to get all the values in that hierarchy, simply enhance it for location.
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
06-01-2025 08:47 PM
if you want to filter then you should use advanced reference qualifier.
If you want to set value then you should use onChange client script
what type of variable is that?
do you want to show all the locations in the hierarchy upto the top based on requested for?
if yes then use this in reference qualifier, check below link and enhance
Recursive function returns undefined
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
06-01-2025 08:52 PM
all i want is to filter so i have tried this , this work but it will filter all user that has same location with the current user. my goal is to filter it to the Region which is Location.Parent.Parent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 08:53 PM
The link I shared shows how to perform the recursion to get all the values in that hierarchy, simply enhance it for location.
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