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

shloke04
Kilo Patron

Hi,



"sc_cat_item" is the Table Name For Creating catalog items and the latter "cat_item" is a field which is defined on the Requested Item Table referring to the Catalog Item Table. Can you share the exact requirement on what needs to be achieved?



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

hi shloke, thanks for the assistance


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.


hi Pradeep, thanks for the assistance