- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 03:39 AM
ITIL users should be able to search for users from all locations in "on behalf of" field, otherwise users specific to that location should be filtered in record producer/service portal.
So, for the field, I used the advance conditions, in the reference qualifier like this, but it is not working.
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 06:18 AM
javascript: (gs.hasRole('itil') ? 'active=true' : 'location=' + gs.getUser().getLocation());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 06:14 AM
Hi Ankur, Willlem
If the condition satisfies then it is fine, otherwise it is returning empty. I want all the users(irrespective of location) to be available for that field if the condition is not satisfied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 06:18 AM
javascript: (gs.hasRole('itil') ? 'active=true' : 'location=' + gs.getUser().getLocation());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 06:18 AM
Hi Jahnavi,
Can you try below.
javascript: (gs.hasRole('itil') ? 'active=true' : 'location=' + gs.getUser().getLocation());
If itil return all Acive users else only specific location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 06:32 AM
Just to be sure, can you describe example and share screenshot, if the code I provided does not do what you want?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 08:06 AM
Hi,
The ref qualifier shared in my earlier reply should work fine
please share your configuration and for which scenario it is not working
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader