Possible to hide from popular items in SP?

John Vo1
Tera Guru

Is it possible to hide a popular item from popping up here?  So if I don't want apple ipad 3 to not show up in the popular item is it possible?

find_real_file.png

1 ACCEPTED SOLUTION

rajneeshbaranwa
Giga Guru

Best Practice would be to create a system property and store comma separated sys_id values of the to be hidden catalog items in this property.

 

Then you can add below one line of the code in Server Script of cloned widget. That is it. You are set.

Next time when you are asked to again exclude/include another catalog item , You just need to add sys_id of the catalog items in the property. No code change required. 

 

find_real_file.png

View solution in original post

47 REPLIES 47

Would type of type would that system property be?  String, etc?

I created a string type and added the sys id to the value  and clone the widget and added the code and it's not working.

Did you add the widget to the page? Same changes are working for me. It should work for you as well. You are missing something very minor.

Hey Rajneesh,

I'm looking to exclude an item from the Popular Items on the Service Portal and your guidance seems just want I needed!!

I think I'm nearly there.  I've managed to create the System Property, cloned the SC Category Page widget and added the script.  However, the item is still displaying under Popular Items.

Am I missing a step?  Do you have to retire the SC Category Page in someway and publish the newly created cloned version?  Sorry, I'm completely new to Service Portal!

Any help would be greatly appreciated.

Many thanks

Tracey

Allen Andreas
Administrator
Administrator

Dang John...you're asking like numerous questions every day, haha...glad the Community is helping you out...

I hope you're learning some stuff...


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!