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

Rodrigo Pereira Fraga picture Rodrigo Pereira Fraga · Oct 29, 2014 · Viewed 16.1k times · Source

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?

Answer

Rodrigo Pereira Fraga picture Rodrigo Pereira Fraga · Oct 31, 2014

OK, I found the answer. With the new google approach, all scripts are managed as scripts, so to share a script, even in a private domain, you need to publish on the "add-on store".

I just follow these steps and in a few days I solved my need. https://developers.google.com/apps-script/add-ons/publish