Questions tagged [google-apps-script]

Use for questions about Google Apps Script, Google's server side Javascript-based cloud scripting platform for automating tasks across Google products and third-party services. Use in addition to relevant product-specific (e.g. [google-sheets], [google-docs]) or API-specific (e.g. [google-drive-api]) tags where applicable

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Filtering rows based on relation of cells value - GS

My goal is filter all rows of one Google Sheet which contains an especific value "ELB" in column "STATUS PEP". But I also want to filter the rows that contains the same value of ...
0 votes
0 answers
13 views

SyntaxError: Invalid or unexpected token (línea 5, archivo "Código")

file Codigo.gs Syntax function doGet() { var template = HtmlService.createTemplateFromFile("Registro"); template.pubUrl = "https://script.google.com/macros/s/...
0 votes
1 answer
22 views

Update data validation value when source data is changed

I am trying to update the selected value in a data validation list ('Roster!A2') when the source data is changed on the sheet 'Console' by user input from the sidebar. I am writing the data to '...
0 votes
1 answer
12 views

Google Script Error .setFormula with REGEXREPLACE

I am trying to replace hyphens in phone numbers utilizing a Google Script. Here is what I have: function FillFormulas() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('...
0 votes
0 answers
12 views

Google Script using setValues timing out

I have a script that merges two spreadsheets with the same structure using setValues. It has started to time out recently because the data has become too large over time. I did some research and ...
  • 1
0 votes
1 answer
19 views

Delete rows where checkbox is true and delete sheet where name matches value in checked row

I'm attempting to write a script that checks rows and deletes rows where a checkbox is checked. The part where I'm stuck is that I have a script that also creates a new sheet and names it the the ...
0 votes
1 answer
28 views

TypeError: Cannot read properties of undefined (reading 'getFormula')

I'm trying to do a function that gets a formula from a cell with const formula = cell.getFormulas(); into a script that i'm doing. But nothing appears to run... Anyone knows a solution? Thanks! ...
-1 votes
0 answers
15 views

Can't able to handle error callback using getScript method to load dynamic map script

My jQuery version 1.11.2 I'm using getScript() method to load the map script dynamically means at runtime. Unfortunately when hitting the script with some firewall protected network script refused the ...
  • 17
0 votes
0 answers
25 views

How to create a multi-page web app with Google script [duplicate]

I'm trying to deploy a multipage web app with Google script. my script is linked to a Google cloud project. I'm using Bootstrap in the html file to get this navbar: here is the code in Code.gs: ...
  • 63
0 votes
0 answers
32 views

Have some problems with youtube resumable uploader

I want to transfer my videos from google drive to youtube using following script in google apps script: function myFunction() { // Please set the file ID of video file and the metadata for ...
0 votes
0 answers
12 views

Google Apps Script (GAS): Prevent JavaScript code from showing in console

Background: I'm trying to create google apps script with the following description: type: standalone webapp run as: me access: anyone Files description Code.gs - Main GS Code Home.html - Main Page ...
  • 1
-2 votes
0 answers
22 views

Calendar to Google sheet data transfer - efficiency required with current script

My script is timing out, I'm just looking for some ideas on how to reduce the data this script brings over. How can I edit my script to only bring over the following headers? Event Title, Event ...
1 vote
0 answers
23 views

How to use appscript to activate if formula value changes from false to true it will populate beside the cell true

For googlesheet. I have an appscript that runs base on change that populate the row from E to H with formula and copy paste as value (except column H* it has formula that checks sheet 3 if the input ...
  • 11
0 votes
0 answers
25 views

Google.Oauth2: KeyError: 'access_token' when trying to trigger function in AppScript via GoogleAPI

I am trying to trigger an AppScript function via the Google API using Python. I have created a service account, added it to the project as an editor, and shared the target sheet with the service ...
0 votes
0 answers
18 views

Google Apps Script LockService not behaving as expected

I have a Google Apps Script function that reads data from two tabs, one containing "leads" and the other containing "clients." The client tab includes URLs for all the spreadsheets ...
-1 votes
0 answers
28 views

Pivot filter whenNumberNotEqualToAny Error: The boolean condition can not have multiple values for equality checks for non-data source objects

I want to filter out some values in a pivot table by using whenNumberNotEquatToAny(numbers) in google script as setHiddenValues is not available in Pivot table filter below is the command I ran: ...
0 votes
1 answer
28 views

How to Keep Formatting When You "Equal" a Cell in Google Docs

In google docs I like to often keep two cells in sync by using the equal sign, such as =A2 for example. The problem is that when I do this, the formatting of the cell is not carried over, and ...
  • 5,469
0 votes
0 answers
17 views

How to append a new row with copied data from another sheet?

I have a basic outline of copying data from one spreadsheet and pasting it into another one. However I need it to append rows rather than re-write one I know currently the way it is written I'm ...
0 votes
0 answers
21 views

Typescript make all declarations visible in all files

I have a typescript google data studio connector project in which all files are executed in one global scope one after another. Order of execution is defined in "filePushOrder": [ "...
0 votes
0 answers
44 views

Google Apps script to move rows with notes to another sheet

I wrote a script to move rows to another sheet, it works but not completely as I would like. I have a SpreadSheet with 2 tabs, one "A PLANIFIER" and one "MASTER". In tab "A ...
  • 139
0 votes
1 answer
21 views

How to extract notes from Google Slides and insert into Google Sheets?

I'd like to extract the notes from a Google Slide deck and insert them into a Google Sheet. I found code to do this here. With a couple of slight modifications, here is the code: function speakerNotes(...
  • 63
0 votes
2 answers
29 views

appscript that generate new google sheets document with specific range and sheets out of existing sheet when triggered

I want to create a script that is able to take a specific range (maybe a named range) and a specific set of sheets out of an existing google sheet, and put them in a sheet that is newly cretated. That ...
0 votes
1 answer
41 views

Google app script time trigger not working

I have this code: const triggerFunctionName = "getScoreEntries"; function onOpen(){ const submenu = SpreadsheetApp.getUi().createMenu("Automatic " + entityBeingToggled).addItem(&...
0 votes
1 answer
19 views

Authorization failure when using JS fetch from google docs add in

I am working on an add-on for Google Docs (slides and sheets), and I am running into an issue when trying to get information from an external endpoint in a custom dialog window. After opening the ...
0 votes
0 answers
11 views

Sorting Grand Total column in Pivot Table using google app script in descending order and changing the color of the table

I have a script that creates a pivot table with filters based on the range in Mapping tab, all is well but I am having a hard time adding functionality like sorting the pivot table by Grand total in ...
  • 5
1 vote
0 answers
27 views

How to send a mail merge without subject custom dialog box using Martin Hawksey Google Script?

I'm using a very slightly adapted copy of this apps script to do a mail merge in Gmail using a Google Sheet that has various data. I have a column in the sheet for Subjectline who I also want the ...
  • 11
0 votes
1 answer
23 views

Is there a way to analyze the content of an email as the user is typing using Apps Scripts for Gmail?

I'm doing some research on this, and I wanted to perform certain actions on a draft email, is it possible to analyze as the user types and execute functions? Something similar to a classic 'onChange' ...
0 votes
1 answer
38 views

App Script Google sheet - button for pasting data values simple form

at the beginning I immediately inform you that I am totally green in appscript I would need a script that pasted values into the appropriate sheets and searches for the appropriate criteria to paste ...
-1 votes
1 answer
17 views

how to automate report sending in sheets

in app script how to automate a range of sheet should be snapshot and send through email or any other social apps i have a sheet which changes data every day and i need to send that snap of data every ...
0 votes
1 answer
42 views

Google Apps Script : Multiple IF statements in a function

I'm trying to wrap my apps script function with an if statement that contains multiple conditions. For example: if (a=="") {a = w} but also if (b=="") {b = w} etc until var r So ...
0 votes
1 answer
17 views

Google Apps Script conflict between global and local variables workaround

I am trying to use two scripts on one sheet. Unfortunately, due to the fact that the second one works globally, the work of the first one is disrupted. The first script creates a formula that operates ...
0 votes
0 answers
7 views

Edit Metabase cards' description box via Google Sheets via Metabase API

I want to connect Metabase and Google Sheets. I want to be able to edit a card's description in the description box of Metabase via a cell in Google Sheets that has the card's URL as another column. I ...
0 votes
1 answer
20 views

How to Move as well as clear data in spreadsheets

I want to move the data in spreadsheet 1 to another spreadsheet but, after the data is moved, spreadsheet 1 is automatically empty but without removing the buttom. like this my project : https://prnt....
-1 votes
2 answers
30 views

Google script saving from excel to PDF not updating date and sum in PDF but ok in google sheet?

Thanks in advance for any insights on the below! I have written a script that saves a google sheet to PDF in google drive, then emails the PDF as an attachment via Gmail. The script was running fine ...
  • 1
0 votes
0 answers
48 views

Script Time Out

My script is timing out, I'm just looking for some ideas anyone has to optimise the script so that it runs faster. Note there are several email addresses that I need to bring the data across from. ...
0 votes
1 answer
30 views

Large Number of Rows Incrementing

What is the quickest way to create 50,000 Rows Incrementing Numbers: CCC100200 - CCC150200? Dragging down is taking forever.
-1 votes
1 answer
29 views

Google Apps Script - How do I sum elements in a two-dimensional array?

I have created a two dimensional array from a Google spreadsheet. Logger.log shows it as this: [ [-4.0], [-1.0], [4.0], [2.0], [1.0], [3.0] ] All I am trying to do is to sum the 6 elements shown above ...
  • 1
0 votes
0 answers
13 views

Get 'Script ID' Supermetrics to add on AppScripts libraries

I wanted to make an shceduled refresh of superMetrics that imports data to Google Sheet, so I asked GPT how to make a refresh of a query in my Google Sheet from Appscript and GPT gave me an example of ...
0 votes
1 answer
21 views

How to preview a local PDF in a Google Apps Script web app

I am trying to preview a PDF that I select in a file picker. I understand why I can't preview it directly, but I thought if I uploaded it, encoded it in base64 and sent it back, it would display. ...
  • 3
0 votes
0 answers
20 views

How to upload video from google drive to youtube channel without api?

I want to transfer my videos from google drive to youtube but i have some problems: I have no any access to Google Console for enabling youtube api v3. Due to some limitations, I can only use Google ...
-2 votes
0 answers
17 views

Javascript funtion for googlesheet: Need to integrate importRange functionality

function onEdit(e) { var range = e.range; var sheet = range.getSheet(); var column = range.getColumn(); // Check if the edited cell is in Range 1 (A1:A10) if (sheet.getName() == "Sheet1&...
0 votes
0 answers
15 views

Why am I receiving emails from apps-scripts-notifications@google.com?

I would like to stop receiving these emails, but I don't know how to end them Your script, Email Scheduler for Gmail, has recently failed to finish successfully. A summary of the failure(s) is shown ...
0 votes
1 answer
28 views

Google Apps Script: People API gets few contacts

Since from April the Contacts API will be deprecated I'm making the switch to the People API. I'm using the code suggested by Google to find a contact starting from email. This is the function: ...
-2 votes
0 answers
20 views

AutoSort Google sheet includes several ranges in one column with dropdown menu

A column has different data with dropdown menu and the column must be sorted A-Z or by color (doesn't matter) but within different teams. Different teams' data are divided into colored rows with no ...
0 votes
1 answer
22 views

Google sheets: how can I filter data in a sheet, based on the sheet's name?

I'm a newby at Google Sheets, so I probabily am solving my problem in the longes way, forgive me. I have a workbook with some sheets, each sheet has (obviously) a name: Supplier1, Supplier2,etc. In ...
  • 1
-1 votes
0 answers
34 views

copy and organise data from a google sheet to an other with a script

In order to create a planning I need to copy some data from a sheet on a new one and to re-organize it... as I'am really new to script, I have try to start myself some script. Here is the code I ...
1 vote
2 answers
30 views

Google sheets jump to cell from Custom menu

I'm trying to create a script for Google Sheets to implement a menu with a contents and quickly navigate from the menu to the desired chapter. Algorithm: Creates a "Scripts" menu and a &...
0 votes
0 answers
10 views

GAS Mail Merge - creating new doc based on template (stuck)

I am new to coding and I decided to "torture myself" with a new challenge which is to create a simple mail merge using Google Apps Scripts, sheets and docs. The code runs until line 64 ...
0 votes
3 answers
37 views

problem while copying information from one spreadsheet to another on google sheet

I'am trying extract an organise some informations fom one spread sheet to another one with script. I have been able so far to do some little stuff even if I'am totally new to script... but there is ...
1 vote
1 answer
22 views

I want to use GAS to save images to GoogleDrive and fill in the URL in SpreadSheet

I am using GoogleAppsScript to create a form to submit names and images. The submitted name and image will be stored in GoogleSpreadSheet, but we would like to store the image in GoogleDrive and store ...

1
2 3 4 5
1031