google-apps-script-addon

Publish new version of Google Sheets Add-on

被刻印的时光 ゝ 提交于 2019-12-24 05:57:51
问题 I have published a Google Sheets Add-on for internal use. It works. But I can't seem to publish a new version. I'm following this: https://developers.google.com/gsuite/add-ons/how-tos/manage-addons Given Google's announcement that they're retiring Chrome Store listings post Jan 28, I've been focusing on deploying to G Suite Marketplace. The steps I've taken are: Update apps script Create new version (File > Manage Versions ... > Save new version) Edit G Suite Marketplace listing to use new

Menu items do not appear in Google Sheets add-on

一曲冷凌霜 提交于 2019-12-24 03:54:13
问题 I am trying to make this add-on plugin that can help me and other to export sheet in to JSON. In my testing it's the menu shows up and all the functionality works (as you see in screenshots). When I sent for publish on Google Web Store the "Docs Add-ons Advisor" don't see the menu in the review. So as "Docs Add-ons Advisor" suggested I published it "Unlisted" to see if it work on my side. And it doesn't work. Here is the code I am using and links. Can anyone tell me what I am doing wrong and

Mass deploy Google Apps Script powered spreadsheet to limited users

无人久伴 提交于 2019-12-24 03:36:09
问题 We've 100+ users, and we created a google spreadsheet for them one by one and ask them to input raw data in the spreadsheet. The current workflow is we've a program to export the spreadsheets one by one into CSV file and import them to our backend system. That's ok. Now, we've learned the Google Apps Script might be a better solution, e.g. user can discover the add-ons in the spreadsheet via "Add-ons -> Get Add-ons", so we can create multiple features and fully automate the import process by

Apps Script Add-On onOpen(e) with if to show a menu or to send an e-mail

烂漫一生 提交于 2019-12-23 04:53:32
问题 I would like to better clarify the question I have written. I am attempting to write an add-on that does the following: When this add-on is installed in a document, I want it to send the user an email every time the document is opened, with the information of who opened the document. I have much more detail about my previous attempts below, but the big question is this: Is there a way for me to accomplish this? Thanks to everyone who has helped. I am working to write a Google Apps Script add

Google Apps Script Add On google.run.script runs as developer?

落花浮王杯 提交于 2019-12-23 02:34:46
问题 I've only been working in GAS for a little under 6 months. Everything thus far has been bound spreadsheet projects, but have created quite a few. I have a new need to create an add-on sidebar that people can use in any spreadsheet they want (in a domain). I created the code, published it so only the domain can see it, and can install it as another user in the same domain, all of that seems to work fine. The issue has to do with the sidebar.html , and calling a function in my script using

How to use versioned deployments when programmatically creating triggers?

流过昼夜 提交于 2019-12-22 12:15:48
问题 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

How to use versioned deployments when programmatically creating triggers?

我的梦境 提交于 2019-12-22 12:13:46
问题 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

Google Apps script publishing addon for internal use

≡放荡痞女 提交于 2019-12-18 10:44:31
问题 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. 回答1: 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

How to use scope “https://www.googleapis.com/auth/script.webapp.deploy”

送分小仙女□ 提交于 2019-12-11 16:49:02
问题 When you add this scope inside oauthScopes section in your appscript.json file: "oauthScopes": [ "https://www.googleapis.com/auth/script.webapp.deploy", ] you will see something like this when you attempt to use the addon: As I understand, this scope will allow the developer to deploy the addon as a web app (a separated web app for each addon user, not the only web app when we Deploy as web app manually in the script editor) My question is how to actually use this scope to "Publish this

How to add media upload for BigQuery Rest API using UrlFetchApp?

点点圈 提交于 2019-12-11 00:38:38
问题 I need to stream data into BigQuery from my Google Apps Script addon. But I need to use my service account only (I need to insert data into my BigQuery table, not user's BigQuery table) I followed this example: https://developers.google.com/apps-script/advanced/bigquery#load_csv_data Because Apps Script Advanced Service doesn't support service account natively, so I need to change this example a bit: Instead of using Advanced Service BigQuery, I need to get the OAuth token from my service