Service portal widget - $sp versus regular query (best practice)

Sitrix
Tera Guru

TLDR; Is it possible to have $sp.getCatalogItem return more fields when called? I.e. custom fields.

 

Hello everyone ๐Ÿ™‚

I doing some changes to our portal widget (think the default names is  "sc catalog item"). I've noticed $sp is generally used to fetch values, i.e. sys_id class_name etc. The field that I need to check is custom, residint on the sc_cat_item table. Thought it would be possble using the $sp.getCatalogItem functionallity, but it doesn't return every field on the table - including the one I need.

 

I've simply made a glide query instead, but I'm wondering if its the right way to go? Would I be able to configure $sp.getCatalogItem functionallity, so its returns an extra variable in the call? Or should I just do a regular query? 

0 REPLIES 0