“SpreadsheetApp.getUi() cannot be called from this context”

Ui Dialogs can not be called by time triggered functions, they have to be triggered by a user action, that’s to say a click on a menu item or some sort of button that calls the function showing the UI.

Leave a Comment