- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 08:08 PM
I am working on a global table sys_email_canned_message.
I want to limit the "User" field to pull only users who have the ITIL role. I have tried the instructions listed in this link, where I create an Advanced Reference Qualifier on the field that calls a built-in business rule getRoledUsers.
I have attempted to add this line to the Advanced Reference qualifier. It does not work, the user field still returns all users even those without the ITIL role. Do I need to create a separate script include and call it with a reference qualifier instead of calling the existing business rule?
javascript:"sys_idIN"+getRoledUsers("IN","itil").join(",").
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 08:29 PM
Take a look at the Dictionary Entry for the "Task.Assigned to" field (Incident, Problem, etc...):
It uses a Simple reference qualifier of "Roles is itil". It works regardless of how many roles the user has.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 08:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 06:17 AM
Thank you Jim! That's great. I got the other one to work too (I had a spelling mistake in my advanced qualifier). Anyway your solution is much more elegant! Thanks so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 08:27 AM
You are welcome!