How to limit most viewed articles for a specific knowledge base and to filter for 90 days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
i have a question to ask, whether the OOB widget Knowledge most viewed articles, is it gives the articles that are viewed in that past 30 days and where can we find that filter condition, can we restrict the knowledge bases as well, like only i need to restrict it to self-service knowledge base and filter for 90 days?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
it's this widget "kb-mostviewed-articles"
I believe the filter is defined in platform level script include SNC.KnowledgeHelper() and we cannot do anything here.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi, thanks for the response. i am getting confused here -u are saying now the OOB widget gives the all-time view count articles not the 30 days filter and we cannot use add the filter condition for the widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am saying the OOTB widget is internally calling SNC script include and I think that's applying the filter of 30 days from platform level and hence you can't do anything here.
you can try to play with the script include I shared.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Thanks @Ankur Bawiskar , for all ur suggestions , my team wants to use the OOB widget.