How to automatically refresh a dashboard #unsupported – XrmMtl Skip to content

How to automatically refresh a dashboard #unsupported

Hi folks,

To refresh a dashboard, you can click on the button refresh. But, there is no supported way to refresh a dashboard automatically without refreshing the whole page. ┬áHere, I’m offering you a simple solution to that problem.

First, create an html web resource. I named mine xrm_dashboard_autorefresh.html. It’s generic so I can use it in multiple places. In the content, copy and paste the following. ┬áThen save and publish.

[html]
<script type=’text/javascript>
setInterval(function() {
parent.Mscrm.DashboardRibbonActions.refreshDashboardPage();
},60 * 1000);
</script>
[/html]

Second, open your dashboard. In the last row, add the web resource. Also, uncheck “Visible by default” to keep it hidden.

The script will use the same command as the Refresh button.

Save, Publish, go take a coffee.

Published inDashboard