The CreatorCon Call for Content is officially open! Get started here.

hide quantity on service portal for every catalog item

Servicenow10
Kilo Guru

i need to hide the quantity on sp for every catalog item

 

find_real_file.png

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

Hi

Try this script in your background script - 

var gr = new GlideRecord("sc_cat_item");
gr.addEncodedQuery("type!=bundle^sys_class_name!=sc_cat_item_guide^type!=package^sys_class_name!=sc_cat_item_content^no_quantity=false");
gr.query();
gr.no_quantity = 'true';
gr.updateMultiple();

 

Regards,

Omkar Mone

View solution in original post

5 REPLIES 5

H S B
Giga Guru

Simply open your catalog item under 'Maintain Item' module & under "Portal Settings', check 'Hide Quantity' -

HSB_0-1705647315886.png

 

 

It works 100% so shouldn't be an issue.

Do mark this answer as helpful or accepted if it helps. Thanks