Glen Little
Glen Little

Reputation: 7128

Get permission for newTrigger in Add-on?

In a Gmail Add-on, I have:

ScriptApp.newTrigger("timedFunction")
  .timeBased()
  .after(5 * 1000)
  .create();

However, when this runs, I get this error message:

You do not have permission to call newTrigger

How do I get this permission?

Upvotes: 0

Views: 122

Answers (1)

Glen Little
Glen Little

Reputation: 7128

Finally noticed this on one page:

You can't create or use Apps Script simple or installable triggers in a Gmail add-on.

Upvotes: 2

Related Questions