Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to auto refresh data visualization components like ( Pie, Donut, Score, Bar, Pivot etc..).

Revathi15
Tera Contributor

How to auto refresh the CWS home page data for every 2 min to see the updated/Latest records.

5 REPLIES 5

AndersBGS
Tera Patron
Tera Patron

Hi @Revathi15 ,

 

I'm unsure if a ServiceNow solution exist, but otherwise a webpage auto refresher could also do the trick:

AndersBGS_0-1697577248307.png

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Web page auto refresh will not be user friendly so i am looking for any workaround where we can refresh ui builder widget data for every 2 min automatically.

Tai Vu
Kilo Patron
Kilo Patron

Hi @Revathi15 

Have you tried this one?

Screenshot 2023-10-25 at 13.38.00.png

 

Also check this API api.setState('refresh_list', {timestamp: Date.now()});

#KB112064 - [UI Builder] How to refresh a list on a page after new data has been submitted.

 

Let me know if it works for you.

 

Cheers,

Tai Vu

Revathi15
Tera Contributor

Hi @Tai Vu,

 

I have tried refresh after being away for x minutes it is not working as expected when user working on two different browsers and dashboard is inactive.