0

The following code is creating trigger:

var trigger = ScriptApp.newTrigger("function_name")
.timeBased()
  .everyMinutes(5)
  .create();

but they are getting disabled automatically due to some issue in V8 engine

Ref: https://issuetracker.google.com/issues/150756612

Disabling V8 is having critical side effects as old ES5 couldn't support all the other functions

So, is there any way to enable the disabled trigger programmatically?

0

From the question:

So, is there any way to enable the disabled trigger programmatically?

There isn't.

The alternative is to use Babel or something like that that could make your code work on the old Google Apps Script runtime (Mozilla Rhino)

Reference

https://developers.google.com/apps-script/reference/script/trigger

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.