The CreatorCon Call for Content is officially open! Get started here.

How to set Auto refresh for Dashboard throught to performance Analytics

Sirri
Tera Guru

Hi All,

 

I have created the Dashboard through performance Analytics. please let me know how to set auto refresh for the Dashboard.

 

Thank you.

10 REPLIES 10

Hi @AndersBGS ,

Thank you for response

 

For this is there any plugin required? please let me know plugin name if required.

 

Thank you

Hi @Sirri ,

 

As far as I recall, then no - this should come directly OOTB.

 

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/

Hi @AndersBGS ,

 

I'm unable to see in my navigator as per your snip. please find the below snip for your reference.

Sirri_0-1709653752325.png

Thank you

 

Hi @Sirri ,

 

It's properly because the plugin is not activated. Please see this post: https://www.servicenow.com/community/developer-forum/how-to-set-auto-refresh-for-dashboard-throught-... where I found the following information:

 

createMetric();

Activation Information

Platform Analytics is included in the App Analytics Workspace plugin (sn_app_analytics_w), which is active by default. Updates to this plugin are available in the ServiceNow® Store. Visit the ServiceNow® Store website to view all the available apps and information about submitting requests to the store.

 

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/

Sujit Jadhav
Tera Guru

Hello @Sirri ,

 

To set up auto-refresh for a dashboard in Performance Analytics, you typically use a combination of the Dashboard widget properties and UI Policies. Here's a general guide on how to achieve this:

  1. Widget Configuration:

    • Open the dashboard in Performance Analytics.
    • Navigate to the widget you want to set up auto-refresh for.
    • Click on the widget to open its configuration.
    • Look for an option related to auto-refresh or refresh interval. Depending on the specific widget type, this option may be labeled differently (e.g., "Refresh Interval", "Auto-Refresh", "Update Interval", etc.).
    • Set the refresh interval according to your requirements (e.g., every 30 seconds, every 1 minute, etc.).
  2. UI Policy (Optional):

    • If the widget configuration does not provide an option for auto-refresh, you can use a UI Policy to achieve the same effect.
    • Create a UI Policy targeting the dashboard widget.
    • Add a condition that always evaluates to true (e.g., true condition) so that the policy applies to all records.
    • Add an action to set the refresh interval of the widget. This action would typically involve setting a client-side script to refresh the widget at a specific interval using JavaScript.

Here's an example of how you can use JavaScript to refresh the widget at a specific interval:

 

function refreshDashboardWidget() {
// Refresh the dashboard widget
window.location.reload();
}
// Set the refresh interval (e.g., every 1 minute)
var refreshInterval = 60000; // 1 minute in milliseconds
 
// Call the refreshDashboardWidget function at the specified interval
setInterval(refreshDashboardWidget, refreshInterval);
 

This script refreshes the dashboard widget by reloading the entire page at the specified interval using window.location.reload(). Adjust the refreshInterval variable according to your desired refresh frequency.

 

Please note that setting a low refresh interval (e.g., every few seconds) may impact performance, especially if the dashboard contains complex widgets or large datasets. Use auto-refresh judiciously to balance real-time updates with system performance considerations.

 

Please mark my answer Correct/Helpful, If applicable

 

Regards,

Sujit