Remove an item from popular items list in the catalog

joshmorris
Tera Guru

joshmorris_0-1744703529760.png

I would like to remove one of the generic request items that are listed in the popular items. How would I go about doing this?

1 ACCEPTED SOLUTION

@joshmorris 

The links I shared talks about the script changes as well.

Did you get a chance to check?

AnkurBawiskar_0-1744719892179.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @joshmorris 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0750153

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@joshmorris 

check these links, but remember you will have to clone widgets etc and have scripting in it

How to remove popular items 

Easiest way to remove a specific catalog item from 'Popular items" widgetfrom Service Portal homepag 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Shivalika
Mega Sage

Hello @joshmorris 

 

You will need to modify the "sc-category" widget. In the server script there is a method "getPopularItems". This contains the exact query which is being used to determin the popular items. You may need to clone this widget and create your custom query to remove the items. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Do you have any idea of the script needed to remove this?