popular knowledge article widget for the employee center portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
My requirement is like- the popular knowledge articles widget section displays the 8 most used kb articles from the self-service knowledge base in the past 90 days.
Is there any oob widgets we can clone and make some customizations on that widgets or else should we go with creation of new widget from the scratch.
what is the best ServiceNow approach to implement this. Any guidance, examples, or links to relevant documentation would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @PRAVALIKAREDDYL ,
ServiceNow provides several OOTB widgets for Knowledge Articles. As per your requirement "Knowledge MostViewed Articles" widget will be the best fit.
You can check out other Knowledge Article Widgets as well from here: https://www.servicenow.com/docs/csh?topicname=km-widgets.html&version=latest
If this solution helps you then, mark it as accepted solution ✔️ and give thumbs up👍!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
You don’t need to build a new widget from scratch for this. The best approach is to clone the OOB “Knowledge Most Viewed” widget and then update it with your own condition.
The reason is that this widget already handles the logic of fetching KB articles by view count, so you only need to adjust it to:
Apply your 90-day filter (e.g., sys_created_on >= gs.daysAgoStart(90))
Limit the results to the top 8 articles
This way, you’re reusing ServiceNow’s out-of-the-box functionality and only adding your customization, which is always the recommended approach.
Shashank Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi,
can u please share the code where i have to make changes. i tried many ways but those are not working like adding the filter condition only to get the articles from the knowledge base self-service and most used articles in the past 90 days.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi,
can u please share the code where i have to make changes. i tried many ways but those are not working like adding the filter condition only to get the articles from the knowledge base self-service and most used articles in the past 90 days.
Thank you!