Is it possible to call a Google Sheets add-on as if it were a function in an Apps Script?
I am trying to automate a few steps like this:
All of these steps are done with 2 add-ons. Ideally, I could call those add-on functions with a script and run the script with a button.
Is this possible?
AFAIK it's not possible.
Google Apps Script official documentation doesn't include this on the Guides section, by the other hand, there aren't a documented way to call add-on functions other than the custom menus and the add-on dialogs, sidebars, custom functions and triggers.
This is possible however all users have to have view permission to the underlining script file that you publish from.
I'm not sure this is bullet proof but to help limit the exposure of the code I've:
1) Share code with option "Anyone at My Domain with the link"
2) Break off any function you don't want users to potentially see into a seperate Library ; make this Library private
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.