How to access catalog item attributes from user criteria script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2016 10:04 AM
Within entitlement scripts it was possible to access the catalog item using current object and calling current.getID() to retrieve the catalog item sys_id.
With user criteria script, this is no longer possible as there is no access to the current object. Does somebody know how to access the catalog item attributes from within a user criteria script.
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2016 11:53 AM
I guess you might have to perform GlideRecord Operations.
User criteria can be applied to mutiple catalog items, Knowledge bases etc,so I dont think current object will here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2016 03:47 AM
I'm expecting to have to query, but how do I get some reference to the object the user criteria is being evaluated for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2016 06:47 AM
Hi Aleksandar,
If you are working with knowledge base and applying user criteria, then
- "kb_uc_can_read_mtom", this is the mTom table you need to query against for knowledge base for "Who can read"
- "kb_uc_can_contribute_mtom", this is the mTom table you need to query against for Knowldge base for "who can contribute"
If you are working with catalog items and applying user criteria "Availalbe for" and "Not avaialbe for", then
- sc_cat_item_user_criteria_mtom is the table you need to work on for "Available for"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2016 08:23 AM
I'm aware of this, but how do I find out for with catalog item is the user criteria being evaluated?