Auto Refresh on Google Data Studio using Google Apps Script

泄露秘密 提交于 2020-02-06 12:32:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!