r/GoogleAppsScript • • May 13 '25

Question Quotas for Google Services- Workplace

6 Upvotes

I built out a system for for a small convention set to take place next month. It wasn't until this week I thought about the amount of script executions that would take place and if my personal gmail account may have limitations on script executions. Low and behold it does. There is an option to use a business account and pay for (which I will) but the website states 60 days must pass and $100 must be paid for the higher workplace quotas to be updated from trial. If I pay for a 1 year in advance and don't do a trail do I still have to wait 60 days? The event is next month, so money is not my concern, but time is not something I have the luxury of. The website is NO help! Looking here:

https://developers.google.com/apps-script/guides/services/quotas


r/GoogleAppsScript • • Apr 04 '25

Question Is it just me, or is the Google Workspace Marketplace hard to navigate?

Thumbnail reddit.com
6 Upvotes

r/GoogleAppsScript • • Feb 23 '25

Question Database Recomendation

6 Upvotes

I have a reasonably sized apps script project that is currently storing quite a bit of table based data in individual sheets (obviously not ideal). I think it makes sense to use a real database for this and I am looking for recommendations.

My main requirements is something cloud based and easy to use from apps script.

Supabase looks easy to use and I’ve created a project and loaded some data - but reading and writing to it from my apps script project isn’t super straight forward and feels like I’m heading down a path less travelled.

Any recommendations are appreciated!


r/GoogleAppsScript • • Feb 18 '25

Question Security of Published Google Workspace Add-on (GAS)

6 Upvotes

We have developed a Google Apps Script (GAS) add-on, which is officially published on the Google Workspace Marketplace. Since the code runs entirely inside Google Workspace and does not go through any external CI/CD pipelines, we want to better understand how secure the stored data and credentials are inside the script.

Currently, our add-on contains several hardcoded credentials, including:

• Amazon SP API keys

• Amazon Ads API keys

• Database (MySQL/Cloud SQL) access credentials

• Firestore authentication credentials

Since the add-on is hosted and managed by Google, we would like to clarify:

  1. Is it necessary to encrypt or obfuscate sensitive data inside the script, or does Google already ensure its protection?

  2. Can the source code of a published Google Workspace add-on be accessed, extracted, or reverse-engineered by end users in any way?

  3. What are the best practices for securely storing secrets in a Google Apps Script add-on?

  4. Is there a recommended way to integrate with Google Cloud Secrets Manager, Firestore, or any other secure storage solution for managing sensitive credentials within an add-on?

Additionally, we previously attempted to use Properties Service to store credentials instead of hardcoding them, but it introduced some issues:

• Difficulty in debugging when dealing with stored JSON.

• Unwanted data artifacts, making it unreliable.

Given these challenges, we are looking for secure and scalable best practices to handle sensitive credentials inside a Google Apps Script add-on.

Any insights, best practices, or official documentation references would be highly appreciated.


r/GoogleAppsScript • • Feb 04 '25

Question Can Google Apps Script perform CRUD operations directly on a Google AppSheet database?

6 Upvotes

Hey everyone,

I’ve been diving into a project where I’d like to use Google Apps Script to directly interact with an AppSheet database to perform CRUD operations (Create, Read, Update, Delete)

However, I’m struggling to find documentation or the correct syntax on how to do this efficiently. Is it even possible to perform these operations directly through Apps Script, or would I need to go through an AppSheet API or use Google Sheets as an intermediary?

If anyone has a working example, or even tips on which classes or services I should focus on within Apps Script, I’d really appreciate it.

Thanks in advance for any help!


r/GoogleAppsScript • • Dec 31 '24

Question Bundlers (rollup, webpack, esbuild)

6 Upvotes

What is everyone using? Many have plugins that depend on https://www.npmjs.com/package/gas-entry-generator. I have also used different approaches with separating the public interface with an iife/umd with global this.

I haven't found any ideal setup still. I want to write the following and have the jsdoc maintained for custom functions.

import {} from "./bar";

/**
* insert jsdoc
*/
export function foo() = {
  bar()
}

I have done this in the past with moderat success:

import fs from "fs";
import esbuild from "esbuild";
import { wasmLoader } from "esbuild-plugin-wasm";
import path from "path";

const outdir = "dist";
const sourceRoot = "src";

await esbuild.build({
  entryPoints: ["./src/wasm.js"],
  bundle: true,
  outdir,
  sourceRoot,
  platform: "neutral",
  format: "esm",
  plugins: [wasmLoader({ mode: "embedded" })],
  inject: ["polyfill.js"],
  minify: true,
  banner: { js: "// Generated code DO NOT EDIT\n" },
});

const passThroughFiles = [
  "main.js", 
  "test.js", 
  "appsscript.json",
];

await Promise.all(
  passThroughFiles.map(async (file) =>
    fs.promises.copyFile(
      path.join(sourceRoot, file),
      path.join(outdir, file)
    )
  )
);

r/GoogleAppsScript • • Nov 25 '24

Guide fyi: "currentonly" scopes only work in Apps Script services

6 Upvotes

The currentonly scope is only available within Apps Script Services. This does not include Apps Script Advanced Services or direct calls to Google Workspace APIs.

I recently updated this documentation to clarify this and wanted to share more broadly, see https://developers.google.com/workspace/add-ons/concepts/workspace-scopes#editor-scopes.

For example, this Sheets bound script:

const range = "A1:B2";
const values = [[1, 2], [3, 4]];
const id = SpreadsheetApp.getActiveSpreadsheet().getId();

function test() {
  console.log(SpreadsheetApp
    .getActiveSpreadsheet()
    .getSheets()[0]
    .getRange(range)
    .setValues(values)  // This works
    .getDisplayValues());

  Sheets.Spreadsheets.Values.update(  // This fails
    { values },
    id,
    range);
}

Execution log:

3:17:21 PM	Notice	Execution started
3:17:22 PM	Info	[ [ '1', '2' ], [ '3', '4' ] ]
3:17:22 PM	Error	
Exception: Specified permissions are not sufficient to call sheets.spreadsheets.values.update. Required permissions: (https://www.googleapis.com/auth/drive || https://www.googleapis.com/auth/drive.file || https://www.googleapis.com/auth/spreadsheets)
test	@ Code.gs:13

Manifest:

{
  ...
  "dependencies": {
    "enabledAdvancedServices": [
      {
        "userSymbol": "Sheets",
        "version": "v4",
        "serviceId": "sheets"
      }
    ]
  },
  "exceptionLogging": "STACKDRIVER",
  "runtimeVersion": "V8",
  "oauthScopes": [
    "https://www.googleapis.com/auth/spreadsheets.currentonly"
  ]
}

r/GoogleAppsScript • • Nov 25 '24

Question Are there really no event-based triggers in Google App Scripts?

6 Upvotes

I'll try to be as short as possible:

I've set up a google cloud project (app script) where every single email that my ISP sends me regarding the monthly bills (ie I have till X month X day to pay X month's bills, which are X USD for that month) will be automatically converted into a Google Calendar event with the necessary participants, title (name of event), description and start/end date.

My problem is: I cannot find a way to make the receipt of such emails trigger this app script. So this app script wouldn't run all the time. The best workaround thus far is that the app script runs every 5 minutes, but the app script itself only looks for Unread emails of X label (all such emails are labeled Y) so as to prevent the adding of already complete past events to my Google Calendar.

I previously tried to do this via Power Automate but ISO 86001 format kept on giving me headaches so I switched over to Google App Script and I managed to do it in 1 try. But again, I can't find a way to have the event (receipt of such emails) trigger the app script itself.


r/GoogleAppsScript • • Nov 15 '24

Question What do you launch with Appscript.

6 Upvotes

I am very curious about what people launch with appscript, aside internal automation that most people use appscript for, are others launching products that others can use with appscript? I'm just curious. In the past two days, I have launched two Web products: www.letmyvotecount.com and www.examinationhall.online solely with appscript. Could others share what they've built solely with appscript?

Disclaimer: I'm not pitching, these are things I built with appsript and hosted on Google sites without paying for anything and they are therefore not tools that are charged. I'm only curious what others are building with appscript.


r/GoogleAppsScript • • Oct 17 '24

Question Adding new Tab to Google Doc with apps script?

6 Upvotes

Is there a way to add / create a new tab in a Google Doc with apps script?
I only found functions to retrieve and updata content of tabs.


r/GoogleAppsScript • • Sep 30 '24

Question Hosting a Script

6 Upvotes

I made a simple script using app script which uses an api to check the status of a couple of servers and if it gets back an error then it sends a message via google spaces that one of the servers is down.

Ive never hosted a script before and would like to do it on one of googles services but like I said, this part is completely knew to me. How would I go about it? I know Google has a variety of services they offer, would I just leave it running continuously on a cloud server/vm? or is there some type of service that runs the script every so often for me? I would like to ping the servers every minute or so?

Again, I'm new to this so any advice would help. Thanks in advance!

Edit: As everyone suggested I ended up trying out the triggers function on google and its worked like a charm! So if anyone else comes across this and has a similar project I suggest trying out triggers first.


r/GoogleAppsScript • • Sep 01 '24

Resolved Display date in french format using Utilities.formatDate

6 Upvotes

My code retrieve fields from Google sheet to replace them on an invoice on Google doc.

The amount is displayed in euros but the date is always displayed with the month in English (22 August 2024).

I would like to get a month in French (22 août 2024).

Can someone help me please?

body.replaceText('{{Date_Facture}}', Utilities.formatDate(row[12], 'Europe/Paris', "dd MMMM yyyy"));
body.replaceText('{{Fact_Montant_TTC}}', row[19].toLocaleString('fr-FR', { style: 'currency', currency: 'EUR' }));

Solved by changing first line by :

body.replaceText('{{Date facture}}', row[12].toLocaleDateString('fr-FR', {year: 'numeric', month: 'long', day: 'numeric'}));

Thanks for helping


r/GoogleAppsScript • • Aug 27 '24

Guide I need Manpower

6 Upvotes

Hello, I have a full-time job as an ERP Consultant, I normally customize spreadsheets use by my clients to prepare reports and store data, some use appscripts and other are just using formula's

now the problem is the demand for my service is increasing, I'm looking for spreadhsheet experts here to help me handle my clients because most of the time I do not meet the deadlines because I'm becoming too busy. if you are interested to partner with me please sent me a dm


r/GoogleAppsScript • • Jul 19 '24

Guide Finally cleaned up some scripts I use to solve automation problems for small business clients. Mostly the focus is getting data into Google Sheets to using it for quick BI solutions. I just wanted to open source the scripts.

Thumbnail
github.com
6 Upvotes

r/GoogleAppsScript • • Jul 16 '24

Unresolved Exporting Excel

6 Upvotes

I have been trying to export my google sheet using app scripts as an excel and sending it over email. Whenever I convert it to a blob and try to create an Excel, the excel is always corrupted and doesn't work.

Please help me with the right way to convert the sheets data to blob to excel file.


r/GoogleAppsScript • • Mar 21 '24

Question Is this new? I'm pretty sure I haven't seen this before. And by the amount of versions you can judge I've been on this project for a while lol.

Post image
6 Upvotes

r/GoogleAppsScript • • Mar 17 '24

Question What was your favorite Google Web App you ever made?

6 Upvotes

What was your favorite Google Web App you ever made?

Just starting to get into this as a side hobby and have a long way to go!


r/GoogleAppsScript • • Feb 21 '24

Resolved My Own App Is Out In Marketplace..🙀 🍾 🎉

6 Upvotes

This addon represents a significant milestone in my software development journey. It took over a year of dedication, and overcoming obstacles including traveling internationally just to launch.

Scan Me - Google Workspace Addon

But through it all, I learned, grew💪 , and never gave up. 🚀 I'm excited to share Scan Me with the world and invite you to try it out. It's a Freemium Addon. Your feedback is valuable to me!


r/GoogleAppsScript • • Feb 15 '24

Unresolved Anyone Else Notice Images Hosted by GDrive Just Stopped Working on GAS WebApps?

6 Upvotes

Is anyone else experiencing images hosted by gDrive not loading on the GAS HTMLService Web Apps? I haven't modified the code or messed with the images in months and all of a sudden there are issues with the images not loading.

When developing the web apps I had some issues getting images hosted via gdrive to load on the page but I was able to resolve this by swapping the URLs to "https://lh3.google.com/u/o/d/FILEID". This was working for over a year but now across all of my tools the images stopped loading on the page. Anyone have this issue or know of a change?

Failed to load resource: net:: ERR_BLOCKED_BY_RESPONSE.NotSameSite


r/GoogleAppsScript • • Jan 27 '24

Question Copying/getting google forms summary graphs with google apps script

6 Upvotes

In the 'responses' tab of Google Forms, within the 'summary' section, you can view and copy graphs (with the use of a button) generated from the responses (such as a pie chart depicting the chosen options). I am looking to automate the creation of reports using Google Apps Script. Essentially, the script needs to iterate through each question and paste the corresponding graphs of the answers into Google Docs. How can I achieve this?
Thanks in advance!


r/GoogleAppsScript • • Oct 12 '23

Guide I open sourced an addon to manage Google Drive files

Thumbnail self.sideproject
6 Upvotes

r/GoogleAppsScript • • Oct 07 '23

Question How can I easily backup all of my Google Apps Scripts to my local drive?

6 Upvotes

Recently I worked with ChatGPT to create a few Google Apps Script projects. I imagine I'll probably create a few dozen more with ChatGPT to automate my workflow.

As I assume you know, ChatGPT is far from perfect. As a result, I have actually needed to start learning a little about Google Apps Script to get the Google Apps Script projects to work the way I want.

I was unpleasantly surprised to find out that, apparently, there's not straightforward way for me to back up my Google Apps Script projects with Google Takeout. (I imagine that I could create a Google Apps script project to copy each of my Google Apps Script projects into a Google Doc and then back up those Google Docs with Google Takeout).

According to Google...

To backup Google Apps Script projects to GitHub, you can use the GasGit script. Before you start, you need to:

  • Install Clasp

I've used Git before, on GitHub. It wasn't a big deal to set up. But I haven't used it for a while; I never really used it much.

Furthermore, I am not an engineer; rather, I'm a mere power user who dislikes performing engineering tasks. Unsurprisingly, I loathe going down technical rabbit holes to learn technical skills I will likely seldom need. For technical stuff I seldom need, I strongly prefer to use GUIs, particularly cloud-based GUIs.

For example, I realize many folks use Rclone to backup their Google Drive. (Pro Tip: according to many folks over on HackerNews, Kopia is better. I installed Kopia and played with it. It has a nice GUI).

But well, for me, Google Takeout works very well for backing up my incredibly, enormously, huge... 7.1 GB of data on Google Drive. /s. I regularly back up my mere 7.1GB of data with Google Takeout to my local drive. For me, that is an elegant solution.

I realize that Git's version control is a crucial feature for myriad engineers. But my Google Apps Script projects are small, simple, and very straightforward. Therefore, I don't need version control (source control).


r/GoogleAppsScript • • Aug 24 '23

Question Courses/Books to help me master GAS

6 Upvotes

Hi everyone,

Recently I started as an intern in data analysis for a firm primarily using GAS to manage and monitor portfolios. I still don't have much knowledge, practical and theoretical, on it, and it's a bit confusing to understand where to start learning and practicing my skills on this. Are there any resources you guys recommend? It can be books, online courses, newsletters, basically anything that helps me learn GAS and also practice it with projects.

Thanks in advance!


r/GoogleAppsScript • • May 15 '23

Resolved ChatGPT 4, ChatGPT 3.5 turbo, chatGPT image generator for google docs Spoiler

Thumbnail
youtu.be
6 Upvotes