Category "google-apps-script"

Create new file in a folder with Apps Script using Google Advanced Drive service

There are four ways to create a new file: DocsList - Shown as DocsList in the Main List. Built in to Apps Script. DriveApp - Shown as Drive in the Main List. B

Performing calculations on Google Forms

I am trying to create a Google Form for an event registration. The admission charges to the event vary for the adults and children. An user can specify the numb

Run script on Sheet(tab) selection/change

I would like to know if there's a way to automatically trigger a script every time a specific sheet, inside a worksheet, is selected. Looking around I found the

Google apps script not identifying sheet correctly

I'm running a templated google script that constructs an html page with the contents of a google spreadsheet. When I run the script with the spreadsheet https:

Calling an API in Google Sheets only when changed have been applied to a cell

I'm Thomas and pretty new to appscript. I managed to use it in order to translate cells in a google sheet using DeepL API. I did it thanks to this post : https:

Google apps script - Auto Fill Column?

I've just learnt about arrayformula and continue for keeping formulas into new rows, now im trying to get a single string to copy into new rows "N". How can I a

google script detect empty cell after edit or delete

I have a problem with my code. It seems fine but it doesn't work and I really don't know why. I tried everything. I want sync my google excel with my google c

Work around for JSON data import in Google Sheet using custom script

enter image description here I want to import data from a table within an HTML page. Used IMPORTHTML =IMPORTHTML("https://www.fpi.nsdl.co.in/web/Reports/FPI_For

I need to accurately find the form response id using google scripts

I have a simple form and I want to forward the response pages to my email address so I can click through straight to the result of that form submission. Using t

How to split single rows into multiple rows depending on whether one cell has values separated by commas or new lines in Google Sheet?

The spreadsheet has some cells with cell contents that are separated by commas, or a new line. 123, 876, 456 Column "C" is the column that determines whet

How to split single rows into multiple rows depending on whether one cell has values separated by commas or new lines in Google Sheet?

The spreadsheet has some cells with cell contents that are separated by commas, or a new line. 123, 876, 456 Column "C" is the column that determines whet

Loop ID through cells in Google Apps Script

Good Day! I would like the Purchase Order ID repeated upon submission of a form in an earlier sheet. My current code however repeats this throughout the length

Show Alert Popup when cell selection is changed (onSelectionChange)

I am trying to show an alert popup when cell selection is changed, using the new trigger onSelectionChange. For some reason it is not showing any alerts. Am i d

Moving from other contacts group in google contacts using google app scripts

I cant move my other contacts to my system group contacts via GAS var activeSheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var group = Co

Looking to create an XML feed from a Google Sheet Table

Looking for some help please, I've been tinkering with the code now most of the day and im stuck, and this seems about the best solution I have found so far. I'

How to set a sheet's number of rows and columns at creation time? (And a word about Google's "advanced parameters")

When creating a spreadsheet ex novo, Google's SpreadsheetApp allows one to specify the number of rows and columns of said spreadsheet: var spreadsheet = Spread

Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)

so basically the task is quite simple, but I didn't find any workable solution for my problem. I have a huge upload script on my website (at the moment localhos

Unable to figure out how to move a file to a folder after they have been matched based on an ID that they both have in their names Google apps script

In Google Drive I am trying to compare an id in a file name against folders named with that id, and if they match, to move that file to that folder. Some of the

Custom functions intermittently hang with "Error - Loading Data"

I have a Google Apps Script custom function, very simple: function sharesBurned(sharesToSell) { return "tree" } Obviously, this works when I test it in

Google apps script: how to refresh data connector from Salesforce with a script?

I'm using Data Connector from Salesforce addon. To refresh my data in Google sheet, I usually either setup an automated refresh via the addon, or I click manua