Category "google-apps-script"

Google app script Youtube service fails to insert live chat message

I wrote a function to insert a message in a youtube live chat using Youtube service in google app script. However the function throws an error GoogleJsonRespons

Google Apps Script issue with headers

The SEC Edgar website requires only 1 item in the header...but I can't get it to work in Script...What am I doing wrong? Script: const options = { 'method' : 'g

Including a specific field from a specific item from an array

I have the following function: function processMegaventorySalesOrder(salesOrder) { let endUser = salesOrder["SalesOrderContactPerson"] let clientName = sale

Auto generation of serial no. based on two criteria in Google Spreadsheet

If column C has the word "Matured", and D has a valid date, then formula in column E should automatically generate a serial no., one higher than the previously

Supabase and Google Apps Script

Is it possible to use Supabase with Google Apps Script (GAS)? I'm new to Supabase and I've never tried to import external library to GAS before. I'm planning to

Google Apps Script cUrl POST Request

I am trying to pull data from an API from https://app.scrapingant.com/ using Google Apps Script. The documentation is here: https://docs.scrapingant.com/request

I want to change zeros to blanks in sheets using apps script

I'm new to using apps script and I'm just trying this out. I want to convert zeros to blanks. This is the code I've managed to create, but it doesn't work and I

copy data from one sheet to another in google app script and append a row, one small issue

sure I had this down but just can't get it right. Had a script set up to get data from one sheet and put it into another one, which I have done but it leaves ga

Google Spreadsheet: Hide/Unhide any row that meets x condition in a group of rows when clicking button?

When clicking "button1" I would like the code to check the First Cell (Column A) of Rows 38-58 and hide the Row if the corresponding cell is empty and show if i

Telegram bot and google apps script not working

Good evening everyone, forgive the trouble, I tried to do a "search" on the site but I could not find the answer to my problem so I thought of opening a new dis

How to select the column has value other than the header in google sheets?

I got responses from Google form into Google Spreadsheet. I want to filter out the "Weekend" and "Workday". For the "Weekend" days, I only want to select the co

To append conference in google calendar's create event popup on click of button from 3rd party video conference plugin

Currently with my 3rd party video conferencing plugin, When user clicks on Google calendar there is popup for scheduling event and in that they can select custo

How to resolve comment and convert it to cell's Value?

Please Help, how to convert comment's value to cell's value using google script? This is the comment, and i want to getValue that comment, and setValue to each

Connecting telegram bot to google spreadsheet

function setWebhook() { var url = telegramUrl + "/setWebhook?url=" + webAppUrl; var response = UrlFetchApp.fetch(url); var obj = JSON.parse(response) Lo

Dynamic grouping in AppSript

I have a Spreadsheet with about 3000 rows which are grouped by order number. I'm trying to build an macro to: remove all groups multisort all rows recreate gr

get name name of cell from his range google script

I want to retrieve the name of a cell having his range. this is the range : var rangeOfCell = sheet.getRange(100,5); I want to know how to get his native(A1, A

Newbie - Google Sheets Web Form Debugging

Simple contact web form. I cannot figure out why it does not work as intended. On open sets up a menu, allows me to select a modal, non-modal or sidebar for for

Issue with getLastRow(), output includes the empty rows as well which I do not want

getLastRow() not working in my script. I am trying to return the last row that has data. But since the spreadsheet has empty rows below the rows filled with dat

Google sheet : Get values from the web and keep value matching each file in a folder

I am trying to do something and I am almost there but I have been scratching my head on a 'length' issue for quite some time now. What I want to do : Get data f

What is the expiry of property we set using d Properties.setProperty(key, value) method of Class PropertiesService

I am unable to find what is the expiry of property we set using Properties.setProperty(key, value) method of Class PropertiesService. I know we can delete it us