5

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);
Rubén
  • 34,714
  • 9
  • 70
  • 166
user1305722
  • 111
  • 1
  • 3
  • 5

1 Answers1

3

You can try to use Time triggers https://developers.google.com/apps-script/execution_time_triggers

printminion
  • 2,988
  • 1
  • 26
  • 30