Modify the Popular items list in the service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2018 02:13 AM
In the Service Portal OOB, when you click on Order Something, it redirects you to the Service Catalog homepage which displays the Popular Items list.
The client wants to control what items are displayed on this list. They still want to show 9 "items" but some of the boxes they want to see are "Hardware" and "Software" which are not really items, but categories. Is this feasible by modifying the Popular Items widget?
Or any suggestions on how to deal with a combination of categories and items as the default view when clicking on Order Something? Maybe we should not use Popular Items at all, rather display the required categories and items as static on the Service Catalog home widget.
Items/Categories that should replace the Popular Items:
1. Access to MS AX (catalog item)
2. Access to MS NAV (catalog item)
3. Change and Project Request (category)
4. New Employee (catalog item)
5. Update Employee (catalog item)
6. Deactivate Employee (catalog item)
7.Onboarding Package (catalog item)
8.Hardware (category)
9.Software (category)
- 4,275 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2020 08:33 AM
Yes, You just need to update the below GlideRecord query from
categories1.addQuery('sys_id','109f0438c6112276003ae8ac13e7009d');
to
categories1.addEncodedQuery('sys_idIN{sys_id1},{sys_id2}');
It will work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2020 08:48 AM
Because there was so much back and forth in this conversation I think I've confused what is needed and what isn't from the conversation above. I'm being asked to have "Popular Items" just show a category called "Popular Items". Do you mind helping me sort through the conversation above and determine what is relevant?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2020 09:17 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2020 09:55 AM
It's not an individual link to popular items, it's a link to sc_category. I wish it were that simple.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2020 09:37 PM
Hi Smfoister,
You can include the below code in the server side,
count = new GlideAggregate('sc_category');
count.addEncodedQuery('title=Computer');
count.query();
while (count.next()){
var item = {};
item.page = 'sc_category';
item.sys_id = 'd0f3575b53813300c128ddeeff7b128b';
item.name = 'Computer';
items.push(item);
}
It will display the category like this below - computer
To add a description and image you can just include,
item.short_description = "Category";
item.picture = categories1.picture;
Kindly mark my response correct and helpful if my suggestion resolved your query,
Thanks
Murali