How to restrict the catalog Categories and Catalog Items in Service Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2017 10:04 PM
Hi All,
I have a requirement where I need only four Categories and their few respective Catalog Items to be visible on Service Portal. The categories also include content Items.Below are the two scenarios of the requirement.
1) I have used an Icon Link Widget in homepage which queries the Service Catalog table as per its default functionality. As per the requirement, on clicking upon the Icon link it is redirecting to the "sc_home page", but it is showing all the categories. How can I customize the page/widget after cloning it, so that it shows only the required Categories. Also, I don't want to deactivate the other unwanted categories in service catalog.
2) So, based on the category that has been selected, all the catalog Items and Content Items are also visible. Is there way to restrict the content Items and Catalog Items, so that only the required ones are visible without deactivating the other unwanted Catalog Items?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2017 10:12 PM
Hie Swetha,
By Using User Criteria, you can restrict the Catalog Item and Content Item.
Refer this -
User Criteria - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2017 11:21 PM
Hi Swetha,
The catalog category is predefined that you want to see on the click of link or you are trying to send required catalog category dynamically ?
Regards,
Jeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2017 12:08 AM
The catalog category, catalo Items and Content Items are all predefined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2017 01:24 AM
Right then you can create your own custom widget no need to clone this one. apply some CSS on the fetched item.
Just you need to query from table "sc_cat_item" by passing Categories or catalogs (Service Catalog). If I am not wrong !!
var count = new GlideRecord('sc_cat_item');
count.addQuery('sc_catalog','******');
count.addQuery('Category','******');
count.query();
Regrds,
Jeet.