Forum Discussion
mpsrshl
4 years agoAdvocate II
Javascript code to refresh tiles inside dashboard only?
Hey there, Does anyone have some javascript code I can use in the way of a bookmark to make my dashboard's tiles refresh every 60 seconds? This dashboard is set up as direct query. I co...
mpsrshl
4 years agoAdvocate II
Hi there,
thanks! after much digging on the web I found a script that works. I set it as a bookmark on the browser and save the url of it as this:
javascript:function refreshPowerBI() {this.frames[0].postMessage({ kind: "powerbi.reportServerHost.IToolbarActionMessage", button: "refresh" }, "https://[your instance]/:443")} if (window.autoRefreshInterval) { clearInterval(window.autoRefreshInterval); };window.autoRefreshInterval = setInterval(refreshPowerBI, 30 * 1000)
I hope it helps other users.