- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 03:14 PM
I am relatively new to ServiceNow so please forgive my ignorance.
I have a requirement to make a list available on the service portal that shows all Major Incidents where the incident's parent location matches the current logged in user's parent location. I have tried to create this using the simple list widget but I am realizing that I cannot dotwalk to get information from the user's location record in the simple list widget's filter.
Can someone please advise on the best way to accomplish this?
Solved! Go to Solution.
- Labels:
-
Analytics and Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:37 AM
Hi Andrew,
Write a script include function (Write your logic here) then return all the matching sys_is's, then open the list widget instance and in filter put sys_is is one of javascript:yourScriptIncludeName().functionname()
See the below snap for reference.
Please mark correct/helpful, If its applicable for you.
Thanks,
Vinay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2019 06:52 PM
Hi Andrew, How are you?
So i think your problem is just filter, i recomend filter on the plataform:
Bellow follow the step by step:
1 - type yout table on search like this (sys_user.list)
2 - apply a filter as you need we have the dynamic as showing on the image bellow
3 - the trick is copy the query and apply on the widget
Apply the query on the simple list and everything will work!!
Good Luck,
I hope this solve your problem 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:37 AM
Hi Andrew,
Write a script include function (Write your logic here) then return all the matching sys_is's, then open the list widget instance and in filter put sys_is is one of javascript:yourScriptIncludeName().functionname()
See the below snap for reference.
Please mark correct/helpful, If its applicable for you.
Thanks,
Vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:49 PM
This was just what I needed, thanks Vinay!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 12:12 AM
Please mark my answer Correct/Helpful, If it worked for you.
Thanks,
Vinay