问题
I have connected a Data Studio report to our internal SQL data source and I've been searching for a way to auto refresh the report at certain intervals.
The only thing I found so far is the plugin called Data Studio Auto Refresh
, which is not working.
Is there anyway to set up auto refresh on my Data Studio report using Google Apps Script?
The datastudio report is being projected to a large monitor in our office that's why I am trying any ways to auto refresh the report.
回答1:
So since the report is being projected to our office monitor, as a workaround I tried creating a script and placing it to the developer tool console that will auto refresh the report at a chosen interval.
function refreshCases(){
$(".refreshIcon").click();
setTimeout(function(){
refreshCases();
},60000)
}
refreshCases();
回答2:
Currently, there is no native / Apps Script based method to auto refresh an opened Data Studio report page.
You can vote for this feature at the official feature request tracker.
回答3:
Actually you can do it using Data Studio Auto Refresh, what you need to do is enable the plugin then refresh the Data Studio your working for the plugin to work. The interval depends on what interval you choose. I'm using the plugin and its working. :D
来源:https://stackoverflow.com/questions/50857101/auto-refresh-on-google-data-studio-using-google-apps-script