Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to add a Google sheet time driven trigger that runs offline?

$
0
0

I'm using two Google sheets lets say sheet A (main data) and B.

Sheet B retrieve data from sheet A using importrange and query functions and data should refresh every day at 7:30 am.There is a problem in Google sheet that data is not refreshing continuously and some lags in between. If I create a trigger in App script of the main reference sheet A , like this:

function refreshA() {  var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("A");  sheet.refresh();}function setupTriggers() {  ScriptApp.newTrigger("refreshA")      .timeBased()      .atHour(7)      .atMinute(30)      .everyDays(1)      .create();} 

Will this run if the page is not opened or not accessed. I mean will it run even if i didn't open Sheet A?Is there a difference if I used a built in Time driven trigger rather than an app script?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>