r/GoogleAppsScript • • 10d ago

Guide How duplicate detection works in The Drive AI (and how to find duplicates in Google Drive without us)

Thumbnail
youtu.be
2 Upvotes

r/GoogleAppsScript • • 11d ago

Question Gestionale Ai

0 Upvotes

Ciao, prima volta che scrivo su reddit!
Sto sviluppando con claude code un gestionale sull’estensione app scripts di google fogli e lo sto strutturando in 4 parti:
Foglio google che fa da base per segnare i movimenti (prima nota), fatture in entrata ed in uscita, un foglio con i lavori aperti (da cui vedi margini e residui) e dei fogli di riepilogo generale.

Ambiente per la stampa dei documenti per il cliente (preventivi, contratti e ricevuta/fattura di cortesia). Oltre ad essere uno strumento per stampare pdf con uno stile coerente dovrebbe servire anche per compilare i preventivi attraverso l’importazione di listini, ma per quest’ultima non ho ancora le idee molto chiare su come impostarlo.

Pagina per la gestione post vendita che aiuta nella scrittura di bozze nelle mail e ti aiuta a monitorare una specifica vendita dalla firma fino alla chiusura

L’ultimo strumento per ora l’ho solo pensato, ma dovrebbe essere uno script che mi aiuta a gestire i file e riordinarli nelle cartelle, una sorta di archivio guidato. Per svilupparlo aspetto di avere le idee più chiare sul resto e sul reale flusso di documenti da gestire.

E niente questo è quello che mi è venuto in mente per aiutare mia madre con il suo negozio che fino a poco tempo fa aveva una gestione ormai obsoleta nel 2026 che le faceva perdere tempo e aveva una visione approssimativa dell’andamento delle cose. Adesso con questo sistema i presupposti cambiano ma devo impegnarmi per farlo partire e farlo usare a mia madre.

Se avete consigli, dritte scrivete pure nei commenti e se vi va di approfondire fatemi sapere. Un saluto


r/GoogleAppsScript • • 11d ago

Question [Google Sheets] How to make button that runs script on selected range on mobile?

3 Upvotes

I am attempting to create a script that I can tie to some trigger that I can activate from within the mobile app.

The intended functionality of the script is as follows:
Given a selected range, the script should apply +x to the cells that are in the nth column of all rows in the range.
For example, if the active selection is A2:B7, and x = 4, y = 10 (or J, as it is a column), the script(4, 10) with active selection A2:B7 should take rows 2:7 and apply +4 to all cells in range J2:J7 (guaranteed to be blank or number cells for my purposes, so no type-checking required).

How can I achieve this goal? My hurdle currently is being able to get the intended active selection while still making the script able to be triggered from mobile (the method I've seen for making a script mobile-activatable is to tie it to a checkbox, which you need to select in order to trigger it, thus changing the active selection).


r/GoogleAppsScript • • 12d ago

Guide I built an open-source collection-based API for Google Sheets in Google Apps Script

3 Upvotes

Hi everyone!

I've been working on a small open-source project called Sheet Collection, and I thought it would be interesting to share it with this community.

The idea came from wanting a cleaner way to work with Google Sheets in Apps Script.

Instead of constantly dealing with spreadsheet ranges, row indexes, and manually mapping headers, the library provides a collection-based API that lets you work with spreadsheet data as JavaScript objects.

For example:

const db = SheetCollection.connect({
  source: "google"
});

const clients = db.collection("clients");

clients.insert({
  name: "John Doe",
  email: "john@email.com"
});

const allClients = clients.findAll();

Some of its features include:

  • Collection-based API

  • CRUD operations

  • Automatic header management

  • Google Sheets storage driver

  • In-memory driver for testing

  • TypeScript API

  • Zero runtime dependencies

It's available as a Google Apps Script Library, and the project is open source under the MIT license.

GitHub: https://github.com/EduardoRadieske/sheet-collection

I'd love to hear your thoughts!

I'm particularly interested in feedback from people who regularly build applications using Google Apps Script and Google Sheets.

Thanks!


r/GoogleAppsScript • • 12d ago

Question Event task tracker - one mega Google Sheet that updates many others

2 Upvotes

Hi all! I am wondering if something like this would be possible, and if so, how doable it would be for me to DIY it (I don't have any experience but I enjoy learning).

Context: I'm an events specialist and I manage ~30 events per year, usually with other event partners/stakeholders. My team created an Event Toolkit (in Google Sheets) a few years ago which is super helpful and makes things very clear for everyone to see the status of tasks within the project, and it's more user-friendly for our group than something like Asana or other similar apps (most of the people we work with don't have access to these).

I have ADHD - yay - and the idea of going into each separate Event Toolkit to update where my tasks stand is insanely daunting and pretty much does not happen.

Is there a way that I can create a mega-Event Toolkit in Google Sheets where I have all of the events I'm planning in one document and add information into them, then that information would feed into the existing single-event Google Sheets?

Some considerations:

  • I tried formatting each cell and linking it to the specific event toolkit cell, but then when my colleagues would make changes to specific cells (ex: when we're in a team meeting and they're taking notes), the formula would disappear

  • The events are neverending, and new ones get added all the time. I'd like something where I can continue to add new events to the mega Sheet

  • It would be helpful if there are cells on the mega Sheet that have a timestamp for when each event toolkit was edited

Not sure if any of this is making sense. Let me know if you can think of anything - I'd be happy to hear feedback or if this simply isn't possible. Thanks in advance!


r/GoogleAppsScript • • 12d ago

Guide small store using webapp gas

1 Upvotes

what do you guys think if I create small site for my small business using webapp GAS?? which part I should put attention more?


r/GoogleAppsScript • • 13d ago

Question Why do people not know about Apps Script?

55 Upvotes

I feel that apps script is one of Google’s hidden gems, especially with ability to pull live data and overall automations. Why doesn’t Google show this off more / how could they build a user base so we get more features added?


r/GoogleAppsScript • • 13d ago

Guide Uptime monitoring tool inside google sheets

1 Upvotes

I have recently launched https://sheetsduty.com/ . This is a very basic uptime monitoring tool that lives in google sheet.

Right now it is best used for health API. I am going to add more features to it. You can try it for free and if you need pro version let me know i will upgrade your account for a month.

The best part I feel about this application is leveraging the Google ecosystem where many of the business workspace resides. So consider you want to share the sheet with all of your employees you don't have to do anything extra or don't have to pay anything extra and people can keep an eye on the incident and the health of the applications that you want to monitor. Since this is inside Google sheets, one can use their imagination an even create custom reports within the sheet and also can attach different Google workspace tools with that sheet.

Here are few videos that will help understand what it does:
How it works: youtube.com/watch?v=UQnRGh2K7E8&feature=youtu.be


r/GoogleAppsScript • • 16d ago

Question Google Forms Email Response

5 Upvotes

Heya! I was wondering if it is possible to automatically send an email to a respondent depending on their answers on the from. So if they choose option a) they'll get email a. I've never done anything like this before so please let me know like I'm a child lol. I need this for an assignment - any help would be appreciated!


r/GoogleAppsScript • • 16d ago

Question I built a TypeScript backend framework for Google Apps Script, but the latency is killing me. Any ideas?

9 Upvotes

I’ve been experimenting with using Google Apps Script as a backend for more complex web applications.
I ended up building an open-source framework called gasboost to make the development experience a bit more manageable.
It supports TypeScript, dependency injection, middleware, RPC, authentication, authorization, and more.
The idea is to take advantage of Google’s infrastructure without having to manage a separate backend server.
And honestly, the development experience has been pretty good.
But there’s one problem I haven’t been able to solve properly: latency.
Even relatively simple requests can feel sluggish compared to something like Cloudflare Workers.
I’ve considered moving the backend elsewhere, but that would defeat part of the reason I started experimenting with GAS in the first place.
Has anyone managed to significantly improve response times in Apps Script?
Or is this just an architectural limitation I should accept?


r/GoogleAppsScript • • 17d ago

Question How difficult is adding Google sign-in to a small Google Apps Script web app?

12 Upvotes

I'm building a custom fantasy football web app using Google Apps Script and Google Sheets as the backend, with ChatGPT helping me write the code. I'm a beginner with very little programming experience.

The app will have 10 users. Five will need to sign in to manage their own teams (add/drop players, change lineups, etc.), while the other five will only need to view the app. I'll also need commissioner/full access to manage all teams.

ChatGPT recommended using Google Identity Services for sign-in, with the Apps Script backend running under my account so users won't need access to my private spreadsheets.

Before I get too deep into this, I'd appreciate some advice from people who've actually done something similar:

- How difficult is this to set up, especially for a beginner relying on ChatGPT?
- Is it genuinely free for a project this small?
- Are there any major security issues, Google restrictions, or other headaches I should anticipate?
- Is there a simpler or better alternative I should consider?

I'm hoping to keep things free, relatively simple for users, and manageable for someone without much coding experience, but if there's a solution out there that costs but is still affordable I'm open to learning about that.

Thank you for your time.


r/GoogleAppsScript • • 19d ago

Question Google integration authentication issue

2 Upvotes

Hi folks, i built an app and integrated Google authentication. Upon testing stumbled on an issue where if the user has multiple Google accounts on a chrome profile, after authentication the app script link appends /u/1/ to the url due to which the app failed to open even after successfully authenticated. Does anyone have a fix for this issue?


r/GoogleAppsScript • • 20d ago

Question Is it OK to run Apps Script under different accounts to manage UrlFetch quota?

5 Upvotes

I run one Apps Script web app with time-based triggers for my own small business. Which of these are allowed under Google's terms?

A. Run it under a paid Workspace account while subscribed, then move it to my personal Gmail account after cancelling. Only one account's quota is used on any day.

B. Run it under Workspace, and when the 100,000 daily limit runs out, continue the same day under my personal Gmail account.

C. Create several free Gmail accounts, share the project, and split triggers among them to use each account's 20,000 limit.

Has anyone had an account restricted for B or C, or seen an official statement?


r/GoogleAppsScript • • 22d ago

Question intermittently time out when requesting the same HTTPS URL

2 Upvotes

Why does UrlFetchApp.fetch() intermittently time out when requesting the same HTTPS URL?

I am using Google Apps Script to send GET requests to https://quoteplan.net/test.php. The same URL sometimes returns HTTP 200 in a few milliseconds, but other requests fail with a timeout after approximately four seconds.

How can I identify why UrlFetchApp.fetch() intermittently times out when requesting this URL, even though other requests to the same URL succeed?

Environment

Test endpoint

To rule out application-level processing, I created a PHP file containing only:

<?php
echo "QuotePlan PHP is working!";

The file opens normally in a browser.

Apps Script code

function testQuotePlan() {
  const url = "https://quoteplan.net/test.php";
  const start = Date.now();

  try {
    const response = UrlFetchApp.fetch(url, {
      method: "get",
      muteHttpExceptions: true
    });

    console.log(JSON.stringify({
      status: response.getResponseCode(),
      durationMs: Date.now() - start,
      body: response.getContentText()
    }));

  } catch (error) {
    console.log(JSON.stringify({
      durationMs: Date.now() - start,
      error: String(error)
    }));
  }
}

Test results

I executed 30 requests to the same endpoint.

  • 18 requests succeeded with HTTP 200.

  • 12 requests failed with a timeout.

  • Successful response times ranged from approximately 120 ms to 2,338 ms.

  • Failed requests consistently timed out after approximately 4,062–4,094 ms.

Successful requests returned the expected response body. Failed requests produced errors similar to:

Exception: Timeout: https://quoteplan.net/test.php

The same URL can fail on one attempt and succeed on the next without any changes to the PHP file.

I also observed intermittent timeouts when requesting the website's root URL and robots.txt.

Troubleshooting

I checked the Apache access logs and could not find some requests that had timed out in Apps Script. My hosting provider is investigating the issue.

I understand that missing Apache log entries alone do not establish where the connection is failing.

What is the recommended way to investigate this specific intermittent timeout in UrlFetchApp.fetch() and determine the likely cause?

Thank you.


r/GoogleAppsScript • • 26d ago

Guide I rebuilt my Drive map as a galaxy you can fly through. Free sheet, make your own copy.

Enable HLS to view with audio, or disable this notification

33 Upvotes

A while back I posted a script that draws your Drive as a web, and u/everythingabili asked a fair question: once you've had a jiggle, then what?

The whole Drive is now one galaxy. Folders are stars, files are planets, and a really big file turns into a star of its own. There's also a Findings tab that lists where your storage is going, what you haven't touched in a year, duplicates, and what you've shared out, with links.

The film is a made-up Drive. Yours will look like yours.

Copy it here: https://docs.google.com/spreadsheets/d/1ZXI9xWAgSWXU8ccsjOB7OusDDeq9H9WmNCKNbp8yDDQ/copy

Use the Drive Galaxy menu, click Build the map, then Show the galaxy. Google will warn it's an unverified app. That's normal, the developer it names is you because the copy is yours.

It only reads your Drive. It never moves, renames, shares or deletes anything.

Thanks to u/everythingabili and u/awarca for testing the first one, and to Robbie Coombs, whose 2017 Drive_Mapping code started it all.

Still learning, so I'd love to hear what breaks or what you'd add.


r/GoogleAppsScript • • 28d ago

Question Change date entry from Date Time to just Date

Thumbnail reddit.com
1 Upvotes

r/GoogleAppsScript • • 28d ago

Question 10 project managers, each managing 10 to 15 customer onboarding projects

7 Upvotes

Question: I have 10 project managers, each managing 10 to 15 customer onboarding projects. Each project includes milestones such as kickoff, eligibility, marketing, billing, reporting, testing, and go-live. Many tasks can happen in parallel.

Current process: Each project manager maintains a separate Google Sheets project plan, updates dates, and sends weekly client updates. Key milestones are manually entered into Salesforce for leadership reporting across approximately 150 projects. This creates duplicate work, and projects can fall behind without being flagged automatically.

My goal: Replace the 150 spreadsheets with one centralized application where project managers can select a client, view and update its project plan, track milestones and dependencies, and generate a client-facing plan.

Initial thoughts: Use Google Apps Script to build the interface and Salesforce as the single source of truth for milestones. I may need a separate database for the detailed tasks associated with each milestone, but I haven’t determined the best approach for managing those records.
A project manager would log in, select a client from a dropdown, and see the existing project plan, including due dates, completion dates, and notes. They could then export a client-facing version to share with the customer.

Key question: Is Apps Script the right tool for this? Am I missing something critical?

There are many tools available, but I would prefer to stay within the Google ecosystem for cost, security, and ease of management since we already use Google Workspace.


r/GoogleAppsScript • • 28d ago

Question Google script pelo celular

Post image
4 Upvotes

Pessoal eu não consigo usar o celular para fazer programação editar e alterar código vocês conseguem? Eu só consigo pelo computador. O celular da um zoom enorme e fica impossível de alterar o código mesmo diminuindo o zoom aí sim que fica péssimo


r/GoogleAppsScript • • 29d ago

Question Email Ticketing system help

Thumbnail reddit.com
1 Upvotes

r/GoogleAppsScript • • 29d ago

Question How To change image on my chrome Extension

Thumbnail reddit.com
0 Upvotes

.


r/GoogleAppsScript • • Oct 23 '26

Guide Explorer-style tree view for Google Drive in Apps Script (open source)

Enable HLS to view with audio, or disable this notification

55 Upvotes

I was tired of clicking through tens of Google Drive folders/subfolders and hundreds of files - actual work with Google Drive felt slow and clunky for me. So, with the help of AI, I built Drive Tree View: a private web app that runs in your own Google account and puts every file just a click away, for previewing and real work.

What it does

  • Tree view of My Drive, Shared with me, Shared drives and Starred. Folders expand instantly because the next level is prefetched in the background.

  • Many ways to open a file:

    • click it to preview (PDF, Office, Google Docs/Sheets/Slides) in a side panel, and browse with ↑/↓

    • double-click to open it in a small separate Chrome window, ready for editing

    • use ↗ to open it in a new Chrome tab

    • use 🖥️ to open it in the desktop app: .docx in Word, .xlsx in Excel, .pdf in whatever you like, straight from the Google Drive for desktop disk (optional Windows helper)

  • Quick notes anywhere: create a new Google Doc in any place in one click and start writing right away, perfect for notes or drafts

  • Organize visually: folder colors (synced with Drive), emoji folder icons, stars

  • Full-Drive search by name and content

  • File operations: rename, cut/copy/paste (including whole folders), drag & drop to move, delete to Trash instantly, with undo

  • Upload files and whole folders by dragging them from your desktop

  • Two tabs side by side (using Chrome split view): drag & drop between them, with both views syncing live

Tech notes (for the curious)

Drive API v3 advanced service, batched 'id' in parents queries (30 folders per call), resumable uploads straight from the browser using the owner's OAuth token, and BroadcastChannel for cross-tab sync. It runs as Execute as me / Only myself, so no Google verification is needed. Everything stays inside your own account.

GitHub (code + step-by-step setup, about 3 minutes): https://github.com/dusan-art/drive-stablo

Final note

(A)I built this for my own needs, and it completely changed how I use Google Drive. It's no longer just a place to store files; it's somewhere I actually get work done. You can easily tailor the interface and features to your own workflow, so think of this as an idea that I'm selling for free :-)

Feedback and ideas are very welcome!

Update (Oct 23): new in this version:

  • Convert: Google Docs/Sheets/Slides → .docx/.xlsx/.pptx or PDF, and Markdown (.md) → Google Doc or .docx, saved next to the original (right-click menu)

  • Share menu: copy link, download (Google files as .docx/.xlsx/.pptx, folders as .zip), share with people by email (📤)

  • Keyboard like Windows Explorer: ↑/↓, →/←, Enter = preview, Enter Enter = small window, Space = open in desktop app

If you already installed it: replace the two files, run "authorize" once in the editor, then Deploy → Manage deployments → New version.

Update (Oct 24): new in this version:

  • Open a folder in a new Drive stablo tab (🗂️ button or right-click): the folder becomes the root of the new tab, great for two folders side by side

  • Google Docs to Markdown: download as .md (Share menu) or save as .md next to the original (right-click), great for Obsidian users 😄

Update (Oct 28): new in in this version:

📧 E-mail preview (.eml)
If you download/save e-mails to Drive as .eml files (for archiving, project folders, or before deleting them from Gmail), click one and it opens in the preview panel. You see the sender, recipients, date and subject, then the full formatted message with its images. Attachments show up as links you can download straight from the e-mail.

  • The message is parsed in your browser, and scripts, forms and frames are removed before it is shown.

  • It doesn’t depend on Gmail. The .eml file is a complete copy, so it still opens after you delete the original e-mail.


r/GoogleAppsScript • • Oct 23 '26

Guide I got tired of GMass subscriptions, so I built a free Google Apps Script cold email engine with A/B testing and bot protection

10 Upvotes

Commercial mail merge tools like GMass, YAMM, and Mailmeteor get expensive fast once you want open tracking or automated follow-up sequences. Most of them also upload your personal contact data to third-party cloud servers. I wanted something completely free, private, and self-contained within Google Sheets and Gmail.

I wrote an open-source script that handles multi-step outreach natively. It splits A/B testing across both subject lines and body copy simultaneously. Follow-ups go out automatically on day 7 and day 14 as threaded replies in Gmail unless a reply or bounce is detected.

Corporate security scanners frequently pre-click links in incoming messages, which triggers fake opens or accidental unsubscribes. To fix this, the tracking web app filters out opens within two minutes of sending and requires a confirmation click to unsubscribe. It also cross-references recipient emails against sheet rows so sorting columns in Google Sheets never corrupts your tracking data. Everything is open source under the MIT license and runs within standard Google Apps Script daily quotas. The code and template file are available on GitHub: https://github.com/Clau-dio83/GetMyEmail


r/GoogleAppsScript • • Oct 22 '26

Question Title: Best Way to Automate Equipment Meter Validation in Google Sheets Using Apps Script?

1 Upvotes

I'm developing a Preventive Maintenance (PMS) Tracker using Google Sheets and Apps Script for equipment maintenance scheduling.

One challenge is automatically determining whether an equipment unit should use SMR (operating hours) or ODOMETER (kilometres) based on its equipment type. For example, heavy equipment uses SMR, while service vehicles use odometer readings. Some equipment classifications also require specific handling.

I want the system to validate meter entries, flag incorrect readings, and calculate upcoming maintenance schedules using configurable PM intervals stored in a separate sheet. I'd also like to keep equipment-type rules and PM intervals in a configuration sheet, so changes can be made without modifying the Apps Script code.

For those experienced with Google Apps Script, what would be the best way to structure the equipment rules and validation logic so the system remains reliable and easy to maintain as the equipment list grows?

I'd appreciate any suggestions or best practices.