What is the difference between sc_cat_item and cat_item

saahilkumar
Tera Contributor

Hi All,

I see many scripts referring to catalog item as cat_item, say

var req = new Gliderecord("sc_request);

req.get(current.request);

req.short_description = current.cat_item.name;

req.update();

so can the above 3rd line be replaced as current.sc_cat_item.name

thanks in advance

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Saahil,



sc_cat_item refers to the table name i.e catalog item and whereas cat_item refers to the field name "Item" on requested item table(sc_req_item).


Please let me know if you have any questions.


View solution in original post

5 REPLIES 5

You are very welcome. Thanks for participating in the community!