5
votes

I am trying to use setInterval function in onOpen trigger. When I run it I am getting " "setInterval" is not defined." error. Are there any restrictions to using setInterval in Google Application Script?

This is the code:

setInterval(function(){
  Logger.log("test");
}, 100);
1
SetInterval is not part of javascript. Its a browser function and onOpen runs on server not browser. - Zig Mandel

1 Answers