Clear recent view in Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 04:15 PM - edited 03-12-2024 01:07 PM
I recently enabled AI Search in the Service Portal. While testing I disabled a catalog item. However it was still showing in recent view for a user. When they clicked on it of course they get "You are either not authorized or record is not valid." So I was wondering if there is a way to clear recent views for everybody when a catalog item is made inactive? Or if there is a way to prevent them from showing in recent views.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 06:46 AM
Hello!
Facing the same issue. Have you found the solution to this one?
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 09:42 AM
No have not found anything for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 10:10 AM
I have found a solution for my scenario and it works.
For me it's the "Recently Viewed" in the typeahead widget. We disabled a catalog item and it is still showing up in the recently viewed.
For your scenario, go to sys_search_event.list and look for the search term that correlates to the item you want to remove and refresh the portal and check to see if it's gone.
Ultimately, go to sys_auto_flush.list then look for the sys_search_event record. Replace the default value in there (default is 15,552,000 seconds = 180 days) and set it to 1 (one second) then go to the schedule jobs and run the Table Cleaner.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 10:27 AM
Well in my scenario they have me disable to catalog item. Then they asked for a new one with a bunch of variables that were not on the original one. Latter they asked me to rename it to the same as the original so the search term would be the same.