How to set Auto refresh for Dashboard throught to performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 09:38 PM
Hi All,
I have created the Dashboard through performance Analytics. please let me know how to set auto refresh for the Dashboard.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 12:56 AM
Hi @AndersBGS ,
Thank you for response
For this is there any plugin required? please let me know plugin name if required.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 01:01 AM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 07:50 AM
Hi @AndersBGS ,
I'm unable to see in my navigator as per your snip. please find the below snip for your reference.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 02:51 PM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 01:22 AM - edited 03-05-2024 01:23 AM
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:
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.).
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:
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