Tag: Google Apps Script Patterns
Google Apps Script Patterns: Keeping a gam generated users report up-to-date with Google Apps Script
In Google Workspace gam is probably the ‘go to’ tool command line tool which allows administrators to easily manage domain and user settings. Recently I was asked about how you can keep gam generated reports up-to-date using Google Apps Script. It’s worth remember that gam uses public Google Workspace APIs when it performs actions and reports. In this post I show you a pattern for building script to keep gam reports fresh.
Google Apps Script Patterns: Google Analytics in Google Add-ons and Apps Script projects
In this post I’ll show you some patterns you can use for using Google Analytics client side in HTMLService and server side with any Google Apps Script code you are running backend. As part of this I include GATrack, a Google Analytics tracking helper class for Google Apps Script
Google Apps Script Patterns: Writing rows of data to Google Sheets
In the previous post in the Google Apps Script Pattern series we looked at selectively updating rows of data in a Google Sheet. For this post we will look at a couple of patterns for inserting multiple rows of data into Google Sheets.
Google Apps Script Patterns: Conditionally updating rows of Google Sheet data by reading and writing data once
In the previous post in this Google Apps Script Patterns series we finished with an example of how you can read and use row data from a Google Sheet. In this post we are going to extend this pattern so that as well as reading the data we also update rows.
Google Apps Script Patterns: Using the destructuring assignment syntax and object arrays to process Google Sheet rows
In my last post I shared a Google Apps Script Pattern for getting a Google Sheet header row. In this post we are going to extend this to look at some patterns for processing rows of data from Google Sheets