Category "google-apps-script"

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

Google App Script on form submit trigger: deployed in the spreadsheet vs deployed in the form

Intuitively, I set a on form submit function in the form's script editor and set the trigger accordingly. function onSubmit(e) { console.log(e); } However, th

How I can parser table values from google apps script

I'm using that in a cell but I have a lot of problems to get the information because many times the sheet is "loading" and does not load the information =QUERY(

If else if statement for variable to another variable

I need to have a Google Form that returns the result of variable2 depends on the result of variable1. The code runs successfully but the variable 2 does not cha

How to translate only text in formatted HTML code using Google Apps Script?

I have been trying to translate text from HTML code. Here is an example: var s = '<span>X stopped the</span><icon></icon><subject>

using JSON.parse in DocumentApp

It seems I can't parse a json file in a Document script despite it's possible via a DriveApp script. Here is a reproducible example : edit a json valid file and

Cannot publish Editor addon on google workspace marketplace -Menu options not shown after App is installed. Please ensure that the add-on correctly

I try to publish an Editor Add-on for Google Sheet into the workspace marketplace. But I'm struck on the review. With this message : The App doesn’t meet

Appscript to clear data, Leaving Header (first row) intact

I have a spreadsheet that I would like to create an app script function to clear data/set values from certain cells. It also needs to work up to the last row, a

Images uploaded from Safari gets cut off

I have a form in a web app where you can upload an image, and then i send a POST call to a GAS script. Then in the GAS script i save the image in a Google drive