User criteria of the catalog item on the Requested for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 06:40 AM
Hello Everyone
I have Catalog Item with a reference field (sys_user) ==> "Requested For"
One more reference field (sys_user) ==> "Opened by".
The Data populated in the Requested For field should populate the users only who satisfy the User criteria same as the "Opened by".
The visibility of the item and the "Requested for" on Catalog item restriction have to be the same.
How to get this done?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 07:39 AM
@Rakesh40 You need to define a script include based reference qualifier for this purpose. The script include method will run the specific user criteria on the records of sys_user table and will only return the sys_ids of those user records which fulfil the criteria. You can return a sys_idIN<comma separated list of sys_ids > from the script include.
Please refer to https://docs.servicenow.com/bundle/vancouver-platform-administration/page/script/server-scripting/co... for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 07:53 AM
Hi @Rakesh40 ,
You can apply the same "user criteria" condition with both reference field.
or create "Dynamic ref qual" similar to user criteria and use every catalog item where you need the same condition.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution