This question already has an answer here:
GAS: Calling functions defined in an add-on from bound script?
(1 answer)
Closed 2 years ago.
I have connected my gsheet to SF using the Data connector for Salesforce and have imported a report.
Is there a way to refresh this report using Apps Script? Or even import another report?
The Data connector for Salesforce has an option to automatically refresh the data in your sheets (see image below). I think this answers what you're looking for.
Salesforce data connector
If you want to build sales tools in a spreadsheet (find leads, automate reporting, etc) you might want to check rows.com . We combine a spreadsheet editor with built-in integrations and automation (Salesforce, Linkedin, Crunchbase, ...), all using formulas, without code.
Here's our integration with Salesforce
https://rows.com/integrations/salesforce
Related
This question already has answers here:
How to share or distribute google apps script with other users?
(2 answers)
Closed 1 year ago.
I have done my app script for test google sheet.
Now I want to import this app script in another google sheet.
I can copy all code to new app script,
but it seems not a good way and a little stupid.
Is there any better way?
You've got two options
Build a library, this will allow you to easily integrate your code in any spreadsheet
Build an add-on; this is slightly more complex, but will allow your users to use a UI to run your scripts without ever needing to use an editor. In your case it's probably best to use this option if you have a Workspace account, this way you can build a private add-on
This question already has an answer here:
Cannot add Firebase library to Apps Script
(1 answer)
Closed 1 year ago.
I am working on an add-on that will send the questions and answer from the google forms to the real-time database. I found the following steps to be able to pass the forms data to firebase.
However, when following the steps, I get the following error (refer to the screenshot below). I am not sure if this library is no longer available. Is there another approach that I can try that will allow me to pass the data from google forms to firebase?
According to this post: Cannot add Firebase library to Apps Script:
You now need the script ID as opposed to the project key to install an Apps Script library. The script ID for this specific library is 1hguuh4Zx72XVC1Zldm_vTtcUUKUA6iBUOoGnJUWLfqDWx5WlOJHqYkrt, which can also be seen in the FirebaseApp site.
References:
Libraries
Firebase
This question already has answers here:
How to protect the Apps Script code in a Google spreadsheet?
(6 answers)
Closed 5 years ago.
Can I open access to the sheets for editing, with the ability to run scripts. But do not give access to viewing and editing scripts?
Or how can I give users access to run scripts without changing them?
Yes, this is easily done. However, from experience, ensure you extensively test your scripts and add all the necessary error handling before distributing it.
Basically, what you need to do it create a new standalone script file, save a version and then distribute the project key to your users or if you are creating a template that the user will make a copy of then call the functions in the script editor of the template file.
Google Documentation on creating librarys
Google Documentation on creating a version
This question already has answers here:
Can I deploy bound scripts using Google Script API
(2 answers)
Closed 2 months ago.
I have a google sheet containing script, I want to perform following operations programmatically.
Make this Google spreadsheet public programmatically.
I want to execute the script associated with the above spreadsheet programmatically for any user (public).
Can I perform "Publish>Deploy as API executable" programmatically?
You may want to check the recent updates in Release Notes and see if it will help. It's stated:
You can now deploy a script project directly from the project manifest.
We've updated the Publish script editor menu item to more accurately represent the various kinds of deployments a project can have, such as add-on, web app, or API executable deployments.
For more information, you may want to check these references:
Using the Execution API
Publishing an Add-on
Then, for features not currently supported, you may check or file a feature request here.
This question already has answers here:
How to protect the Apps Script code in a Google spreadsheet?
(6 answers)
Closed 5 years ago.
I have ID key of the master script and I have did connecting it to another users spreadsheet template as a Library but what I want to do is How to make the spreadsheet template access to the master script being limited or should be not shared.
When I'm going to deleted a master script even the library still appears on the list of clien script of the spreadsheet template but all function seperate dead completely or it has said like this:
YOU DO NOT HAVE ACCESS TO LIBRARY *******, USED BY YOUR SCRIPT, OR IT HAS BEEN DELETED.
Try coment from #user3887038 in Q16075446. It make possible to hide library code, but it made difficult to updating code