google-apps-script-addon

How to run a add-on function from a button on a sheet?

こ雲淡風輕ζ 提交于 2019-12-08 05:59:43
问题 I made an addon (link, in the description - the full code) that works like this. The spreadsheet editor fills the cells and selects the item to which the addon script is assigned in the user menu. The script inserts the current date on the sheet, collects the cell values, sends them to the owner, and removes the editor’s access to the spreadsheet. Everything works great on the desktop, but does not work on mobiles. Now more than 50% of users visit the Internet from mobile devices. Mobile

How to run a add-on function from a button on a sheet?

让人想犯罪 __ 提交于 2019-12-06 16:48:55
I made an addon ( link , in the description - the full code) that works like this. The spreadsheet editor fills the cells and selects the item to which the addon script is assigned in the user menu. The script inserts the current date on the sheet, collects the cell values, sends them to the owner, and removes the editor’s access to the spreadsheet. Everything works great on the desktop, but does not work on mobiles. Now more than 50% of users visit the Internet from mobile devices. Mobile users cannot access menus, sidebars and buttons in the Google Sheets application. In addition, the mobile

How to use versioned deployments when programmatically creating triggers?

我只是一个虾纸丫 提交于 2019-12-06 10:59:52
When creating a trigger programmatically, i.e. through ScriptApp.newTrigger() , does it always point to the "head" deployment, or the most recent published (versioned) deployment? (See documentation on deployment types here .) For context, I'm distributing a script in a multi-user environment which relies on triggers to run every few minutes. I'm trying to ensure that changes made in development (i.e. before publishing those changes) are not picked up immediately by all the clients of the script, as this effectively means any code updates in dev are instantly live for all users. If triggers

Google Add-on adding menu items in limited mode app scripts

我与影子孤独终老i 提交于 2019-12-06 05:42:06
问题 We have a addon published in the new google app scripts add on store, but permissions don't seem to work correctly when using the add on in any spreadsheet other than the initial one it is installed in. I'm seeing an issue where when a new spreadsheet is created and a user selects 'use this add on' from the 'manage add-ons' menu, our menu items don't get populated. For now we've been telling people to remove the add-on and reinstall to force the permissions flow for full permissions. I looked

onEdit(e) not working in Add-on

雨燕双飞 提交于 2019-12-06 05:05:53
问题 I've written a script that works great when used in a native spreadsheet. I am now trying to publish it as a Add-on, and am finding that onEdit(e) is not working, when onOpen(e) and onInstall(e) work fine. I've looked over the documentation on Authorization modes and installing/enabling an Add-on, but I think I am probably missing something (hopefully straightforward) since I am a beginner. Should I be calling the functions differently? Or the placement of the onEdit ? Any help is appreciated

There is no API Console project with the id specified in the manifest's api_console_project_id field

谁说我不能喝 提交于 2019-12-04 22:42:04
I am trying to publish a spreadsheet web add-on but getting following error. There is no API Console project with the id specified in the manifest's api_console_project_id field Can anyone tell me why I am getting this error ? Gosh... not sure why this was so hard. It'd be more user-friendly to run the various API checks before the user selects to publish their add-on and/or provide a link to the correct documentation! Then fix that super cryptic error message. Anyway, for others who are stuck in this boat (like me who published their first add-on so long ago they'd completely forgotten about

onEdit(e) not working in Add-on

天涯浪子 提交于 2019-12-04 11:23:39
I've written a script that works great when used in a native spreadsheet. I am now trying to publish it as a Add-on, and am finding that onEdit(e) is not working, when onOpen(e) and onInstall(e) work fine. I've looked over the documentation on Authorization modes and installing/enabling an Add-on, but I think I am probably missing something (hopefully straightforward) since I am a beginner. Should I be calling the functions differently? Or the placement of the onEdit ? Any help is appreciated. Thanks!! function setup() { var ui = SpreadsheetApp.getUi(); var ss = SpreadsheetApp

“You do not have permission to call showModalDialog”

那年仲夏 提交于 2019-12-04 06:36:43
问题 We first noticed this issue Friday, June 8. It could have been lurking for some time before that, as we don't use the add-on frequently. We first saw it running "Test as add-on..." from the project on script.google.com, regardless of version of code being tested. Then we had multiple users reproduce the issue from their own accounts, using the public addon downloaded from G Suite Marketplace. The public add-on dates back to May 2 and it was working fine when published. Open any sheet in

Deploy and use Google Sheets add-on with Google Apps Script

点点圈 提交于 2019-12-02 12:05:20
问题 I'm working on a Google Sheets add-on in Google Apps Script and want to know how I can deploy it and install it into a Google Sheets spreadsheet whilst it is still in development (i.e. not ready to publish in the Store). At the moment I'm forced to create my add-on embedded within an existing spreadsheet with no option of using it in another. Has anyone achieved this yet? 回答1: Yes its posible but first you need to be approved by google to publish. Once you can publish you specify to publish

Deploy and use Google Sheets add-on with Google Apps Script

我的未来我决定 提交于 2019-12-02 04:16:34
I'm working on a Google Sheets add-on in Google Apps Script and want to know how I can deploy it and install it into a Google Sheets spreadsheet whilst it is still in development (i.e. not ready to publish in the Store). At the moment I'm forced to create my add-on embedded within an existing spreadsheet with no option of using it in another. Has anyone achieved this yet? Yes its posible but first you need to be approved by google to publish. Once you can publish you specify to publish only to a google group and not public (this is standard chrome store functionality) Go to Publish>Test as Add