Serve Sheet As JSON
serveSheetAsJson(sheetName, {cacheSeconds}) returns a ContentService JSON response of a tab's rows as objects keyed by the header row, with…
Serve Sheet As JSON
serveSheetAsJson(sheetName, {cacheSeconds}) returns a ContentService JSON response of a tab's rows as objects keyed by the header row, with…
Add Cancel to a long menu job
Someone starts Process visible rows from the menu. Three minutes later the filter was wrong. Closing the browser tab does nothing useful…
Stop onEdit from chasing your own writes
The sheet has two pieces of automation. An installable onEdit keeps Orders sorted by date and stamps “Last touched” when someone changes a…
CacheService vs Script Properties vs a Config sheet — pick the right shelf
Every Apps Script project eventually grows “settings.” The trouble isn’t storing them — it’s storing them on the wrong shelf. API tokens end…
Cancel Flag
A teammate kicked off “Process all rows” from the menu. Two minutes in they realize the filter was wrong. There is no Stop button — only…
Script Write Guard
Your nightly job rewrites 400 rows by row number. Meanwhile someone edits a cell, your installable onEdit auto-sorts the sheet, and the job…