#google workspace
- Building a MCP Client in Google Apps Script
Learn how to communicate with Model Context Protocol (MCP) servers using Apps Script and UrlFetchApp. Incorporate the MCP client into Vertex AI tool calling.
- Using Gemini in Apps Script
Learn how to use the new built-in Vertex AI Advanced Service in Google Apps Script to access Gemini models directly, without the need for complex UrlFetchApp calls.
- Currentonly Scopes in Google Apps Script
Learn about the @OnlyCurrentDoc annotation and currentonly scopes in Google Apps Script. Understand why and how to use them, along with their critical limitations regarding Advanced Services and external APIs.
- Resolve Chat User IDs to Emails: Least Privilege
Securely resolve Google Chat User IDs to emails without Domain-Wide Delegation. Use Service Account Impersonation and custom Admin roles.
- Apps Script CacheService: Unofficial Documentation and Limits
The unofficial documentation for the Apps Script CacheService. Learn about key/value constraints, size limits, and the undocumented FIFO batch eviction policy.
- UrlFetchApp: The Unofficial Documentation
The unofficial guide to Google Apps Script UrlFetchApp. Master authentication, fetchAll for parallelism, web scraping, and debugging "Address Unavailable".
- Secure Secrets in Google Apps Script
Do not hardcode secrets in Google Apps Script. Use Properties Service or Google Cloud Secret Manager.
- Google Workspace Developer Tools MCP Server
Announcing the new MCP server for Google Workspace Developer Tools, providing AI agents with access to official documentation and API snippets.
- React Wrapper for Google Drive Picker
Announcing the new React component for the Google Drive Picker, wrapping usage of the web component for easier integration.
- Google Workspace Developer Tools VS Code Extension
Announcing the new Google Workspace Developer Tools extension for VS Code, working with Antigravity and providing OAuth2 scope linting and MCP support.
- Google Drive Picker TypeScript - Types Updated
Last week I submitted a pull request to the DefinitelyTyped repository for the Google Drive Picker API. Not a big deal in itself, but these types are generated from the same source as the Google Drive Picker reference documentation and should be more correct and consistent than the community types that were previously in the DefinitelyTyped repository.
- Google Forms - title vs name vs documentTitle
Recently I had to clarify some confusion around the title and name of a Google Form. Here is a quick explanation of the difference between the two.
- Convert docx to Google Docs with Apps Script
Programmatically convert, open, and edit Microsoft Word .docx files in Google Apps Script using the Drive API and DocumentApp.
- Google Workspace Developer Summits - 2024 - Boston and Berlin
Save the date for the Google Workspace Developer Summits in 2024! Boston - September 12, 2024 and Berlin - September 17, 2024.
- Google Sheets API - IMPORT / Image - Bypass User Consent
Use the Spreadsheets v4 API to set the importFunctionsExternalUrlAccessAllowed property to true and allow access to external URLs without requiring user consent.
- Apps Script and WebAssembly - A comprehensive guide
You can use WebAssembly with Google Apps Script! This post will cover how to do that and provide a comprehensive guide on how to get started.
- google.script.run vs. doGet/doPost
Compare google.script.run vs doGet/doPost endpoints for Apps Script web apps. Choose the best method for simple apps or complex frameworks like React/Vue.
- Drive File Get Blob and Scopes in Google Apps Script
Working with binary files like PDFs or images in Google Drive with Google Apps Script can be a bit tricky due to scopes. Here is a comparison of the three main ways to get the Blob of a file in Google Drive and the scopes required.
- Storage Wars: CacheService vs. PropertiesService vs. Firestore Benchmarks
Comparison and benchmarks of Google Apps Script storage options. See why CacheService is slightly faster than PropertiesService and when to use Firestore.
- Google Cloud Region Latency in Google Apps Script
Ping results to Google Cloud regions and short code snippet demonstrating how to measure latency from Google Apps Script.
- Apps Script V8 Runtime Limitations
A comparison of the WinterCG Minimum Common Web Platform API draft with the Apps Script V8 runtime.
- Google Next 24 - Rust, Python, and WASM in Apps Script
I will be giving a talk at Google Next 2024 on how to use Rust, Python and WASM to extend Google Apps Script.
- Promises, async and await in Google Apps Script
Understand async/await and Promises in Google Apps Script. Learn why most APIs remain synchronous and how WebAssembly is the exception.
- Google Calendar - Usage Limits Exceeded
Cleanup repositories on GitHUb by deleting old forks.
- Embed images from Google Drive in your website
Google Drive broke the ability to embed images with the /uc path. Here's how to embed images from Google Drive in your website.
- Using Firestore in Apps Script
Firestore can be a powerful tool when using Apps Script. This post shows how to use the [Firestore REST API] in Apps Script.
- Apps Script Service Account Impersonation
Avoid downloading private service account keys by using impersonation in Apps Script to obtain access tokens.
- Generating Text with Gemini Pro in Apps Script
A short code snippet demonstrating how to generate text with the Gemini Pro Rest API in Apps Script.
- Memoization in Apps Script
A generic Apps Script memoization function can be written to cache any function.
- Using Vertex AI in Apps Script
How to use the Vertex AI API in Apps Script to make predictions on your data or use it in any of your other Google Workspace processes.
- Combining Google Workspace Add-ons and Editor Add-ons
Both Add-on types have their own strengths and weaknesses. Combining them could be a powerful way to build Add-ons for Google Workspace but with some caveats.
- Archiving Dependabot Emails with Apps Script
Archive Dependabot and Semantic Release emails automatically using Google Apps Script cron jobs to declutter your inbox.
- Automate Email Bankruptcy using Apps Script
Archiving emails older than 30 days automatically.