I made an Apps Script for Google Sheets and published it as an editor Add-on for my company domain. Its one custom function and when I did an individual install for myself it works fine. And when anyone else in the org does an individual install it works fine. However when installing it for the whole company via Admin Console, the Add-on doesn't work and gives the following error unknown function
. So I want to know what am I missing that is preventing this Add-on from working.
So after like 5 hours of not understanding what's going and not being able to find the solution. I figured it out. In the spreadsheet I had to go to Add-Ons -> Manage Add-Ons and on the Add-On I made there were the 3 vertical dots (options) and right clicking reveals a panel that says "Use in this document". Though a minor inconvenience - every time someone in the org creates a new spreadsheet and wants to use functions from the plug-in, they will have to do just that. Hope this helps.