popular knowledge article widget for the employee center portal

PRAVALIKAREDDYL
Tera Contributor

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!


4 REPLIES 4

debendudas
Mega Sage

Hi @PRAVALIKAREDDYL ,

ServiceNow provides several OOTB widgets for Knowledge Articles. As per your requirement "Knowledge MostViewed Articles" widget will be the best fit. 

debendudas_0-1755798173382.png

 

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👍

Shashank_Jain
Kilo Sage

@PRAVALIKAREDDYL ,

 

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.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

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!

PRAVALIKAREDDYL
Tera Contributor

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!