I have a script on a specific google document that is activated via a menu I've created. I want the menu to appear in ALL google docs files, just like the native menus do (i.e. "File","Edit","View" etc.). How can I achieve this?
Seems like using it as an add-on is the solution. I am not interested in publishing the add-on at this point.
From Google "Publishing add-ons" how-to:
Unpublished
An add-on publication state. Unpublished add-ons (also called developer add-ons) have not completed the publication process and are
not listed in the G Suite Marketplace. This doesn't mean the
add-on is incomplete—it's possible to create and use an add-on without
publishing it. You can even share unpublished add-ons for others to
install and use.
I created an unpublished add-on, but the menu is not there. This is the relevant question:
Can't get menu item to show in an unpublished add-on for google document
Related
I've searched around for this, but haven't found any info. I've written a few scripts that are bound to certain google docs/sheets. Instead of being bound to a particular doc/sheet, is it possible to have a google action script that loads whenever anyone in my google user account group opens a new or existing doc/sheet?
I know how to load a menu UI. That's simple. I know how to create a stand-alone script. I'm asking for something different. Basically, I want to create a deployment suite of proprietary scripts for our company, and whenever a current or future user of our group opens any new or current Google docs/sheets, the menu appears in their UI.
Is this possible, or do I have to ask my users to "install" my suite every time?
If this exists in GAS, I don't know where to look.
Since you mentioned that you want to have the script available as a "button" that can be accessible by any user from any Sheet or Doc I think the only way to do this is by deploying your script as an add-on then make it available internally through the Google Workspace Marketplace and do a domain installation of this add-on so it gets installed for all your users automatically.
First you would need to create the script and deploy it as an add-on. You can skip the part of the OAuth verification process because you are not publishing a public add-on but just an internal add-on for your organization.
After that make sure to add the Google Workspace Marketplace SDK to your Google Cloud Platform project. In the App configuration section from the Marketplace SDK set everything as internal/private and mark the Google services where you want it to be available and create the store listing.
Once you finish that you will see the app has been approved and an installation link. Make sure to install it domain wide and wait a couple of minutes for it to appear in all your files (from the selected Google services during the configuration) for all your users.
The result should look something like this:
References:
Create and manage deployments
Publish an app
I have read some documentation about the notion of "installed or enabled editor add-ons" but I didn't understand very well. I have developped an add-ons that work with a specific google sheet template. The rule is that I will make some copy of the sheet model and distribut them to collaborator or they will do themselves the copy of the model and work on it.
I would like to know if it's possible to link the add-ons to the doc and in that way my collaborator don't need to search the add-on on G-suite store because ideally the copy of my google sheet template will offer the possibility to install the linked addon directly in the menu of the google sheet.
Finally from what i understood here,https://developers.google.com/gsuite/add-ons/concepts/editor-auth-lifecycle
Authorization model
Two properties of editor add-ons make them especially easy to share and use:
Once you get an editor add-on from the store, you see it in the Add-ons menu for every
you open or create. Collaborators on those documents won't see the add-on except in documents
where you actually use it.
Once you use an editor add-on in a document, your collaborators also see it in the Add-ons menu,
but just for that document (unless they have also installed that add-on).
I would like to have the second exemple and not the first.
Thank you for your answers guys
I tried to Pre-install a Sheets add-on for all users in the domain.
For that purpose i referred to the steps provided here -> https://developers.google.com/apps-script/add-ons/domain-wide
The add-on was successfully published to all users.
But the users are not able to use the said Add-on in all the sheets.
When trying to run the add-on only the "Help" sub-menu item is visible under the Add-on Menu as shown in image given below.
The above mentioned problem only gets resolved when i follow the below mentioned steps:
Add-ons -> Manage add-ons... -> Click on "Manage" button for the said Add-on -> Select "Use in this document" option as shown in images given below.
The problem gets resolved if and only if the user follows above mentioned steps and then reloads the spreadsheet in the browser.
Also, these steps are needed to be performed again to enable the Add-on for that particular spreadsheet if the user creates a fresh spreadsheet.
This operation is not needed for any Add-on that is available on the Chrome Web store or from the G-Suite Marketplace.
Is there any way in which any Sheets Add-on created using Google Apps Script can be published for domain wide installation and pre-installed in all users accounts and is available to be used in any Spreadsheet without having to Manage that Add-on for use in that particular spreadsheet?
Thanks in advance.
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 web add-on..., then uploaded different icon and images in Chrome Web Store, paid 5 dollars, left most of boxes blank, then published it with the option Private and chose the created google group.
However, when I open a new Google Sheet with either of these two mails, I cannot find the add-on in Add-ons. By Add-ons ==> Get add-ons..., I cannot find the add-on either.
So does anyone know where this add-on is supposed to appear? Is it because this add-on is under review by Google that it is not available yet.
I am quite surprised to see such a basic publishing is not unclear. Is it because few people publish an add-on with Private?
In your web store dashboard, you should see the link to the add-on. Get the URL for this link and give the URL to the accounts you have created that should have permission. Those accounts need to install the add-on, and then should be able to use it.
I think you can also list your add-on as unlisted and not be required to go through the entire approval process. This makes it a little easier to share your add-ons with specific users.
I have made an add-ons for Google app scripts . Now I want to add it in every document in one folder. How can i do that?
In this tutorial https://developers.google.com/apps-script/quickstart/docs, it only uses for one document.
If your add-on was published to Google Marketplace/Chrome Web Store and you installed it from there, and you are the owner of all the docs in the folder, that add-on should be available in your docs under Add-ons menu. I think it's the same for domain-specific add-ons as well (have no way to check it at the moment).
If you just created an add-on in a doc-bound script, then the add-on will only be available in that doc. To add it to other docs, you will have to copy your script into those docs manually - there is no API way to do it.