Forum Discussion
Anonymous
7 years agoNot applicable
Power BI Report Server - Refresh data on embedded report
Hi - Below, we have figured out the javascript code that can be pasted into the console to get a PowerBI Report Server report to refresh the data only (i.e. clicking the refresh button) on a time...
Nicolas687
3 years agoNew Member
Hello, I am using this solution on the September 2021 release.
So far it worked without any issues.
This is the code I was using so far.
<iframe marginwidth="0" marginheight="0" width="100%" height="100%" scrolling="yes" frameborder=0 id="iframe" src="http://rMyrapport?rs:embed= true">
</iframe>
<script>
function shift()
{
this.frames[0].frames[0].postMessage({kind:'powerbi.reportServerHost.IToolbarActionMessage',button:'refresh'},'*');
}
setInterval(shift, 10000);
</script>
But we installed the May 2022 version.
Since this update, this code no longer works.
Do you know why and especially how to correct.MontherKH
2 years agoFrequent Visitor
Have you figured that out?