I’m trying to write a basic script which creates a UI. I have reduced it to the following:
function doGet(e) {
var app = new UiApp.createApplication();
return app;
}
This throws the error:
Method “createApplication” was invoked with [object Object] as “this” value that can not be converted to type $Proxy811. (line 2)
When run from the script edit page, and when published as a web app
You have to remove
newfrom the 1st function line, i.e. the function should be