Google Apps Script: the automation built into Google Workspace
Apps Script is JavaScript that runs on Google’s servers and makes Sheets, Gmail, Forms and Drive do work for you, on a schedule or the moment a form comes in. It comes with every Google Workspace plan, so there is no extra licence to buy.
JavaScript that runs inside Google Workspace
Apps Script is the JavaScript platform Google includes with every Workspace account. The code runs in Google’s cloud, so there is no server to host and nothing to install.
-
Reads and writes every core app
Gmail, Sheets, Docs, Slides, Drive, Calendar and Forms each have a built-in service ready to call.
-
Starts on its own
Runs on a schedule, when someone edits a sheet, or when a form is submitted.
-
Talks to systems outside Google
Calls the APIs of your ERP, CRM or LINE Official Account to send and fetch data.
-
Adds your own menus and screens
Custom menus, sidebars and small web apps inside the Sheets and Docs your team already uses.
Jobs companies hand to Apps Script
Most are steps a team does by hand every day or week, on files and accounts it already uses.
-
Emails Sheets reports on a schedule
Totals the sheet and sends the summary to managers every Monday morning, with nobody pressing send.
-
Routes Google Forms requests for approval
Leave, expense and purchase requests go to each approver in turn, and the result is logged in a sheet.
-
Builds quotes and contracts from templates
Fills a Docs template with the customer’s details and saves the PDF in that customer’s Drive folder.
-
Books rooms and sends Calendar reminders
Creates events from a sheet, invites the attendees and emails a reminder before each one.
-
Tidies Drive folders and sharing
Creates folders per project, sets access by team and flags files shared outside the company.
-
Connects Sheets to other systems by API
Pulls orders from your ERP, or posts to your LINE OA when a status in the sheet changes.
Four things to set before scripts run real work
A quick script nobody can find tends to stop the day its owner leaves. These habits keep scripts running.
-
Only the access it needs
Check the OAuth scopes a script asks for, and let your admin decide in the Admin console which apps can reach company data.
-
Not tied to one employee
Keep scripts under a shared account or in a Shared Drive, with a copy of the code and its version history.
-
Alerts when a run fails
Turn on trigger failure emails and check the Executions log regularly.
-
Write down what it does
Note when each script runs, which files it uses and where its settings live, so the next person can look after it.
Your first script in four steps
Always try it on a copy of the file before the real one.
Open the script editor
In Google Sheets or Docs choose Extensions › Apps Script, or go to script.google.com.
Write a function
Write JavaScript with the built-in services such as SpreadsheetApp and GmailApp, then save.
Authorise and run
On the first run Google asks for the access the script needs; check the result in the execution log.
Add a trigger
Set it to run on a schedule, when the sheet is edited or when a form is submitted.
When Apps Script fits, and when another tool does
Apps Script is strong at automating work around Workspace files, but each run stops after 6 minutes and there are daily quotas.
A good fit for Apps Script
- The data already lives in Sheets, Forms, Drive or Gmail
- The work repeats: daily, weekly or on every form submission
- Everyone using it is in the same Google Workspace domain
- You want menus or buttons inside the Sheets and Docs the team uses
Better with another tool
- A mobile app for field staff to enter data AppSheet
- Large data processing, or jobs that run longer than 6 minutes Google Cloud
- A system used by many outside customers A full web application
An accredited Google partner in Thailand
AquaOrange is a Google Sell Premier Partner for Google Workspace, and certified Google Workspace administrators work on our team.
- Licensing with correct Thai tax invoices (VAT & WHT)
- Thai- and English-speaking support from a local team
- One partner across Google Cloud and Google Workspace
8 Google partner badges and team credentials. See all our certifications
Google Apps Script questions
Questions about Google Workspace for your company? Talk to our team.
See Google Workspace plansNo. Apps Script comes with every Google account, including every Google Workspace plan.









