Hi,
I am building a workspace addon using the HtmlService.
The code for which is as follows
function showForm() {
var form = HtmlService.createHtmlOutputFromFile('ui');
SpreadsheetApp.getUi().showSidebar(form);
}
function onOpen(e) {
console.log("onOpen", JSON.stringify(e));
showForm();
}
Now, when I open a google sheet, the first time I click on my app's icon, the form opens correctly.
However, once I close this application using the cross button and then click on the button from the apps menu again, this time the sidebar opens on the right and I get this message "Content not available for this message". I get no error logs in execution or logs console. In fact, it seems in the 'Executions' panel on the 'Apps Script' console, I am not even getting the 'onOpen' event.
Can someone please suggest if I am doing something obviously wrong.
Thanks,
Saurabh