- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2016 11:30 AM
Hi Everyone,
I was hoping to utilize user criteria records for an upcoming project. I was surprised to find that there isn't an immediately obvious way to do this from a user-generated script.
What I'm looking for is essentially the GlideFilter.checkRecord() equivalent for user criteria.
I found a recent post to check catalog item availability, however I'm hoping there's a generalized version hidden away in the API somewhere.
Thanks,
Aric
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 10:59 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:22 PM
Hi Aric, If its a Service catalog item then try this code to evaluate user criteria GlideappCatalogItem.get('catalog item sys_id').canView();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 02:14 PM
Hi Manjeet, thanks but is there a generalized way to evaluate the User Criteria? By this I mean to evaluate one without an attached Catalog Item - like if I was to relate user criteria to my own custom table that doesn't inherit from sc_cat_item?
It's just that it seems to be a quite useful system to leverage in custom systems & it's a shame not to be able to directly check if user criteria is met.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 02:54 PM
Hi Tim,
The user criteria concept is only available to Catalog or knowledgebase. Let me circle back with the dev team to see if there is a workaround to use it on custom tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2016 12:11 PM
Hi Manjeet,
That would be great! The reusability of user criteria in a simple configuration-based record makes administration really straight straightforward. This would be a great addition to the core platform API.
Thanks,
Aric