Category "google-apps-script"

Is there a way to create a folder tree of all Shared Drives as an admin?

Google Drive is quite impressive for a web app, but it seems to be optimised for search, not spatial navigation so it's painfully slow for myself and colleagues

How to change the range based on dropdown menu selection

I have a Google Sheet where I am tracking baseball stats for my High School Baseball team. I have the script setup for every time a Hit Error or Run is recorded

Successful Login to API; Unsuccessful at accessing any data due to being unauthorized

I am attempting to come up with a live leaderboard for my local club using the PDGA's (Professional Disc Golf Association) API. I am writing a Google Apps Scrip

Trying to retrieve Google File ID for an image in google sheets

I have an Appsheet app, for which I am trying to get the Google File ID of an image that I have taken through the app. When the image is taken in the app, it is

Google Sheets Dropdown "Input must fall within specified range". How to solve this?

I have a very simple Dropdown on Google Sheets that is working perfectly. Basically when I select an item from the dropdown, it will output that same item on an

How do I view Script Properties in the new Google Apps Script IDE

I've been switched over to the new Google Apps Script IDE. I used to be able to click FILE > PROJECT PROPERTIES to access global properties for files I cann

Apps Script - Cannot retrieve the next object: iterator has reached the end

When I run a script (UPDATE_PRODUCT_DATA) through the editor it runs fine. When it is run through a Trigger it fails. It is failing at getFilesByName – b

How to get all old values for a mulitple cell range with onEdit trigger

In google apps script, with onEdit trigger, how do I get the old values of all the cells if the edited range has multiple cells? In the Event object documentati

Google Apps Script each sheet different calendar

I have multiple sheets with different dates and different calendar ids. The intention is to have the script go over each sheet and import it in the calendar wit

appscript form.data[x] increment

=== Answer added in code === please could you help me resolve this : How get form.test[j] work in the Apps Script code of the form submit.Input name are : test1

How do I fetch and parse JSON data to Google Sheets Script?

EDIT*** Modified the question now that I have a proper source... I am trying to copy a communication log to Google Sheets and don't know enough about scripting

Google Sheets Index Sidebar of all tabs - add search functionality

After some searching I found this code to get a sidebar of all tabs (workbooks) in Google Sheets as a hyperlink. I am looking to add two functionalities to this

Google Sheets - Pixel Width of a text

In Google Sheets, is there a way to calculate the width, in pixels, of a piece of text given a font and a font size? Excel has a PixelWidth function, but I didn

UrlFetchApp.Fetch returns status 200 but Google script web app does not work

I have made two Google spreadsheets. One is parent sheet and another is a child sheet that imports data from parent sheet. This data is imported using a standal

onSelectionChange Google App Script sample

I am trying to figure out the official code sample of Google: /** * The event handler triggered when the selection changes in the spreadsheet. * @param {Event

Google Script to empty emails in trash folder

I was using the below google app script to delete emails automatically from my trash folder. for some reason, this is no longer deleting the emails however the

unexpected error DEADLINE_EXCEEDED google spreadsheet onOpen() trigger

I have a google spreadsheet addon, Formula Tracer Sidebar, published on the Google workspace marketplace. Every once in a while, the following error entry is in

Run Script to add new row via selected value in drop down and clear selected range in that selected row

I'm using this script I found and it's working fine in inserting a new row, I just add a new line to clear the row clearContent(). I wanted to modify this so th

Google Apps Script trigger function runs twice

I have the following trigger setTrigger() set for when a Google Form is submitted. For testing purposes I created a simple function triggerFunction() that creat

how can i add inline javascripts to navigation template in Google App Scripts

I am trying to develop a navigational menu being referenced to different pages in my app. am using Materialize css as a ui and placed the nav codes in a separat