How to access catalog item attributes from user criteria script

acirovic1
Giga Expert

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

11 REPLIES 11

Deepak Ingale1
Mega Sage

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


I'm expecting to have to query, but how do I get some reference to the object the user criteria is being evaluated for?


Hi Aleksandar,



If you are working with knowledge base and applying user criteria, then


  1. "kb_uc_can_read_mtom", this is the mTom table you need to query against for knowledge base for "Who can read"
  2. "kb_uc_can_contribute_mtom", this is the mTom table you need to query against for Knowldge base for "who can contribute"


find_real_file.png



find_real_file.png



If you are working with catalog items and applying user criteria "Availalbe for" and "Not avaialbe for", then



  1. sc_cat_item_user_criteria_mtom is the table you need to work on for "Available for"


find_real_file.png


I'm aware of this, but how do I find out for with catalog item is the user criteria being evaluated?