Clicking on Categories from the Portal not showing the catalog item after Rome upgrade.

Pratiksha_45
Kilo Sage

Hello all,

When I click on "Catalog" from the Portal and then try to click on a category the tiles don't change. Still it shows popular Item.

Currently it seems like this,

 

However, when I refresh the page the tiles appear correctly.

This is happening after the Rome upgrade. 

So, How can I fix this? Please help for this asap.

Thanks in advance!

 

1 ACCEPTED SOLUTION

Jon Collins2
Kilo Sage

Hello, 

We had a similar issue and ServiceNow recommended the following fix in Rome. This fixed the issue for us.

https://support.servicenow.com/kb?id=kb_article_view&sys_kb_id=2dc28d1fdbce7410aa66a9fb13961980

 

If my response was helpful or answered your inquiry, please mark it accordingly.

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Possible Solutions:

  1. Check Widget Configuration:

    • Ensure the widget used to display catalog items is configured correctly.
    • Go to Service Portal > Widgets, find the widget (likely "SC Catalog") handling category items, and verify that it’s set up to update based on the selected category.
  2. Clear Cache:

    • Clear the portal cache by navigating to:
      https://<instance>.service-now.com/sp_cache.do
    • Also, clear your browser cache and refresh the page.
    • Category Setup:

      • Verify categories are properly linked to catalog items in Maintain Categories (sc_category).
  3. Inspect Client Script:

    • Use browser developer tools (F12) to check for any console errors in the JavaScript.
    • Custom client scripts might be interfering with the default behavior, so check if any are running on the page.
    • Server Script Review:

      • Ensure the server script in the widget is fetching data based on the selected category

 

(function() {
    if (input && input.action === "load_category") {
        var gr = new GlideRecord('sc_cat_item');
        gr.addQuery('sc_category', input.category);
        gr.query();
        data.categoryItems = [];
        while (gr.next()) {
            data.categoryItems.push({
                name: gr.getValue('name'),
                description: gr.getValue('short_description')
            });
        }
    }
})();