google-apps-script-addon

Using my own Google Docs addon without publishing it

半腔热情 提交于 2019-12-01 20:35:25
I have just made an addon for Google docs, successfully tested it and now I would like to use it. It's very simple, it just shows the id of the current document. This is the most important part of the script, just called by the onOpen(e) function: DocumentApp.getUi().alert(DocumentApp.getActiveDocument().getId()) When I tested it by the Publish/Test as addon (I am not sure with English titles, I translated the button names from Czech) it works exactly as I want. How can I use it the same was as I would download it from the webstore? I don't want to publish it, because it isn't much useful for

How can I share my app script, between google spreadsheets?

早过忘川 提交于 2019-11-30 23:09:10
问题 I have a corporate google account (with a domain) and I've created a script to access a database, to share data between some spreadsheets to make simulations . I created some custom functions like =listAllCustomers() and now I want to use with any spreadsheets . How can I do that? In a sheet, I can add custom code via "Add On", but how can I share scripts in my domain? 回答1: OK, I found the answer. With the new google approach, all scripts are managed as scripts, so to share a script, even in

Google Apps script publishing addon for internal use

陌路散爱 提交于 2019-11-29 23:14:09
Is it somehow possible to publish add-on without Google approval if it is going to be used for my internal use only? If not, is there any possibility to make some of the Google Apps Script projects global. So that I would not need to copy same code/functionality to another spreadsheets or docs to get my custom macros to work again. An Add-On can be published to be restricted to the domain/G Suite Account that the Apps Script file is in. https://developers.google.com/apps-script/add-ons/publish If the Add-on is not being published publicly, then it does not go through the approval process. Add

Using my own Google Docs addon without publishing it

杀马特。学长 韩版系。学妹 提交于 2019-11-28 09:32:10
问题 I have just made an addon for Google docs, successfully tested it and now I would like to use it. It's very simple, it just shows the id of the current document. This is the most important part of the script, just called by the onOpen(e) function: DocumentApp.getUi().alert(DocumentApp.getActiveDocument().getId()) When I tested it by the Publish/Test as addon (I am not sure with English titles, I translated the button names from Czech) it works exactly as I want. How can I use it the same was

Distribute Google Apps Script and push updates

拈花ヽ惹草 提交于 2019-11-27 07:40:36
问题 In our organization, we use Google spreadsheet as data input to our internal app. I have created a Google Apps Script to facilitate the process of modifying the spreadsheet. As you see, this script is dependent on the spreadsheet format and serves very specific usage only applicable to our organization. My question is how to push automatically any changes to all spreadsheet instances that are using it? I can add the script to the Script Gallery but I think it is not the appropriate place for

Publish an add-on privately

扶醉桌前 提交于 2019-11-27 05:50:40
问题 I am trying to publish a test add-on with the option Private , because there is nothing new in this add-on, and would not be accepted by Google if I published it with Public . The add-on contains a sidebar, a custom menu and a custom function. It works well on its Google Sheet. In Chrome Web Store, I have added 2 gmails to Edit your tester accounts: under Your developer account . I also created a google group with these 2 gmails. By following this thread, I did Publish ==> Deploy as Sheets

Detect user inserting row or column in a google spreadsheet and reacting in a script

心已入冬 提交于 2019-11-26 14:36:04
In Google Apps Script, one of the basic tools is the onEdit trigger in a spreadsheet, which enables us to detect when a user edits a cell, and react to it. How about when a user inserts a row or column ? Is there a way to detect that ? Would that trigger an onEdit ? If so, I guess maintaining in the ScriptDb a count of the number of rows or column, and then checking each time would do, but would be very time costly, since getMaxRows() is already pretty slow, and reaching out to ScriptDb is as well. What do you think ? Mogsdad There are a number of editing actions that do not trigger onEdit() ,

Detect user inserting row or column in a google spreadsheet and reacting in a script

╄→гoц情女王★ 提交于 2019-11-26 03:57:09
问题 In Google Apps Script, one of the basic tools is the onEdit trigger in a spreadsheet, which enables us to detect when a user edits a cell, and react to it. How about when a user inserts a row or column ? Is there a way to detect that ? Would that trigger an onEdit ? If so, I guess maintaining in the ScriptDb a count of the number of rows or column, and then checking each time would do, but would be very time costly, since getMaxRows() is already pretty slow, and reaching out to ScriptDb is as