Questions tagged [google-apps-script]

Use for questions about Google Apps Script, Google's server side Javascript V8-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

google-apps-script
Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Calendar event missing methods?

I am trying to write a script to manipulate Calendar data. I seem to be retrieving events, but the objects do not implement the expected methods. Here's my MVE: const response = Calendar.Events.list(...
symcbean's user avatar
  • 48.1k
0 votes
1 answer
16 views

Make a function run on all spreadsheets that meet certain criteria

I'm creating an onEdit(e) script to highlight cells in a Google spreadsheet (in a specific column) after a specified user has edited them. Thing is, I need this to apply to all spreadsheets with a ...
India's user avatar
  • 1
0 votes
1 answer
13 views

Running Apps Script code - not working for fetching the email of other editor to whom access was granted

function onEdit(e) { const range = e.range; const sheet = range.getSheet(); const editedColumn = range.getColumn(); const editedRow = range.getRow(); // Check if the edit is in ...
Shuhrat Zakirov's user avatar
0 votes
2 answers
53 views

Same code behaving differently inside and outside function

I have a google sheet with car names in one column. My goal is to write a script that will go to an API and pull prices for those cars and put them in another column when you click a button from a ...
Jon's user avatar
  • 155
0 votes
1 answer
28 views

How to let others see the description added by an app script for a calendar event

I have a Google App Script that does a bunch of things and in the end sets something to the description of a Google Calendar event. It works for me, I can see the new description on calendar.google....
Michele Amati's user avatar
0 votes
1 answer
13 views

I get a form id Error in Google App Script for FormApp.openById()

I am getting an error in my code.gs at line 2 of code - Actual Code is: function onFormSubmit(e) { const form = FormApp.openById('YOUR_FORM_ID'); I have replaced ('YOUR_FORM_ID') with my form id as ...
Phyllis Lowder's user avatar
0 votes
0 answers
17 views

It is not possible to deploy a project as a web application or a library, as well as to delete a bound library

I create scripts using Tanaike library, but after creation I can't deploy the created project as a web application or library, as well as delete the added library. When I start to deploy the project ...
Antonio's user avatar
  • 97
0 votes
0 answers
9 views

In appscript, I have to do vlookup for ID (Form Responses 1)if this ID is availablein Sheet1 then it is there it has to send mail as "True" or "False"

My problem is For example, Assume two persons are filling the google form, Firt person filled the form in that ID is matching with sheet 1, so the mail sent to his mail id as "True" and next ...
Madhan Krishna's user avatar
0 votes
0 answers
11 views

Google scripts code to send each row of a Google sheet document in a seperate email

I am new to this (I have experience with VBA, but this is slightly different). I would like to ask for help in regards of the script below. I would like to send each row of from a Google sheet in a ...
Peter Vidra's user avatar
-1 votes
1 answer
17 views

How to store google form responses into multiple spreadsheets? Error in existing provided solution

This is in context to an existing Answer, I was trying to replicate the solution provided in this answer, although I am facing some error. Here is link to the existing answer: How to store google form ...
Taher Rajkotwala's user avatar
1 vote
0 answers
14 views

Find the type of Google Sheet Chart tab using Google Sheets API/Apps Script

I have many sheets in a Google Sheet, I want to check the type of sheet via Google Apps Script I know a chart sheet as well as a timeline sheet is a "OBJECT" How to differentiate between the ...
Code Guy's user avatar
  • 3,159
0 votes
1 answer
26 views

Trying to allow another user with edit privileges to run a series of scripts on a spreadsheet that is owned by me

I have 8 scripts with assigned buttons that work well for me when accessing a spreadsheet. I would like to allow another user to run all of the scripts when clicking the associated button. I'm not a ...
PT109's user avatar
  • 33
0 votes
0 answers
22 views

Google forms to Pdf add image

I transfer the information I entered via Google form to pdf via Google Document. Texts are added, but I don't know how to add images. Document file id etc. are all present in the codes. After ...
Esat Kurtul's user avatar
0 votes
0 answers
18 views

send file type MimeType.GOOGLE_SHEETS

This is the script: var allegato = "xxxxxxxxxxxxxxxxxxxdmnuQ35OmvI" var utente="[email protected]" var file = DriveApp.getFileById(allegato); var mimeType = file....
Leone Antonio's user avatar
0 votes
0 answers
24 views

Work with data filtered by Slicers in Google Sheets?

I have a worksheet on Google Sheets: https://docs.google.com/spreadsheets/d/1H9a_RXI41OWFciCZnlfrUD66bTzh6jl2SOL01gwXUMQ/copy I have two slicers. One is to load questions based on category, and the ...
crxssrazr93's user avatar
-2 votes
2 answers
56 views

Is it bad practice to return on every iteration of a map loop?

I like how this map works but I have a suspition that it might be bad practice to use return on every iteration of a loop Is this a bad practice? Thank you const array = [ ["Header 1", &...
Par's user avatar
  • 11
-1 votes
2 answers
31 views

Apps Script create a stamp with last edited sheet name

I have created a "battlesheets" spreadsheet. I would like to display a field to show whose turn it is. Or alternatively, a field that displays who edited the spreadsheet last. The ...
Dan S.'s user avatar
  • 3
0 votes
1 answer
24 views

How do I add information into a specific range?

I'm very new to all this, but I've created a sheet where we can get some information from our clients, but I’d like to make it more dynamic, so I'm trying to program it to at a click of a button I can ...
Natalia Cristiana's user avatar
0 votes
1 answer
49 views

The thumbnail of a presentation is empty immediately after it is created, saved and closed

I create a presentation, insert an image into it, save and close it. Using the Drive API I get a thumbnailLink, then a blob and from it I create a PNG file. The problem is that the file is empty and ...
Boris Baublys's user avatar
-2 votes
1 answer
28 views

How can I give other Google Sheets viewers visual feedback that a script is running? [closed]

Background: I have a dashboard-style google sheet for my organisation that shows clients and their time log entries and some analysis. The time entries are being imported from a time tracking service ...
Martin Stephens's user avatar
0 votes
2 answers
26 views

paste the value of the first cell in an edited row

This is a "change log" function that adds a new row describing each edit to sheet "Edit Log". How can I also notate the value of the first column in the edited row? function onEdit(...
lchelp's user avatar
  • 1
0 votes
1 answer
22 views

Retrieve events from multiple calendars in Google Sheets

I'm beginner in google script code. I'm stopped by loop in loop trying to get events of multiple google calendar in google sheets. I found some help in this forum (here) but wasn't able to get it ...
Jim Noredlac's user avatar
0 votes
0 answers
33 views

Google Apps Script. Using google.script.host.close() is no longer closing my modal dialog

My Google Workspace add-on shows modals with documentApp.getUi().showModalDialog When I close the modal with (client side) google.script.host.close ... the modal does not close. Console log shows &...
Steve's user avatar
  • 975
0 votes
0 answers
21 views

How to forward an email with Apps Script, but with file extension validation?

We have label in Gmail Inbox, and all those messages within that label should be forwarded to external Application. I created a time-triggered script which sends all those messages, but the problem is ...
Arkadiusz Alicki's user avatar
0 votes
1 answer
27 views

Append newly added files in Google drive in Google Sheets Using App Script

We are creating a library of books for the community to be displayed on our website which takes data from Google Sheets. The books are stored in Google Drive. What we have done: We used a Google app ...
Shah Ankit's user avatar
0 votes
0 answers
22 views

google script problems with sheets

I need to move data from one sheet to another by filter, I created this script, but it gives an error: No visible rows to transfer. ` function SAVED() { var floating = SpreadsheetApp....
Ggia Eosin jealous's user avatar
0 votes
0 answers
20 views

Installed a trigger in Google Apps Script but it's not working

not a programmer. I'm working in Google Apps Script. I made chat gpt write a code where when someone submits a Google form, the rows of information in spreadsheet that is linked to the forms (where I ...
Bedia Aksay's user avatar
0 votes
2 answers
55 views

Can not make a copy of appscript file using drive service api or DriveApp

I want to make a copy of a files from a folder using appscript. const copy = (fromFolder, toFolder) => { // copy files const files = fromFolder.getFiles() while (files.hasNext()) { const ...
fitMath's user avatar
  • 11
0 votes
1 answer
36 views

Data error of #REF data while sending email as Excel attachments (Email attachment is working fine)

I use following script to send multiple Google Sheets as attachment into one email, its working perfectly fine until a few days ago. Here is the code: function sendExcelAttachmentsInOneEmail() { var ...
Atif Qayyum's user avatar
0 votes
2 answers
37 views

Google Script to Match Value between 2 workbooks and perform a series of actions on a match

Hi We have an issue where we need to update Workbook A with information found in Workbook B. Workbook A has 30 Worksheets and Workbook B has only 1. Ideally we are looking to match the values in ...
blackmail242's user avatar
0 votes
1 answer
44 views

Populate multiple forms from single sheet

Not a coder. I've copy/pasted code from other sources to get a basic foundation, but I need help adding functionality. I have a single Google Sheet with data in the "events" tab that I would ...
user24408078's user avatar
1 vote
0 answers
29 views

Google Apps Script not inserting image into Google Doc from Drive

I am trying to automate document creation using Google Apps Script by making copies of a template and replacing placeholders with actual data, including an image from Google Drive. However, the image ...
Aristoteles Petrakis's user avatar
0 votes
0 answers
15 views

google apps script can't load in custom domain name

i've a google site and managed to assigned a custom domain name. the page load properly, but the page that embeded google apps script couldn't load.it said:"script.google.com refuse to connect&...
WF wealthmanagement's user avatar
1 vote
1 answer
59 views

Error : Invalid ID while creating projects in map using library ProjectApp2 by tanaike

My script worked flawlessly until recently, but it's been throwing an error for about a week now. Updating projects with the help of this library, as well as obtaining information about projects are ...
Antonio's user avatar
  • 97
0 votes
1 answer
40 views

Why is google app script running outside of coded permitted times?

Below, the script specifically only permits Mon-Fri running of the code. But tt can be seen in the version history, it's been running on Saturday and Sunday and indeed updates the data inside the ...
Mike T's user avatar
  • 15
0 votes
0 answers
12 views

Jdbc.newDate() in google script get wrong day of the month

Logger.log("..xx..2:"+ Jdbc.newDate(new Date("17-APR-2019 ").getTime()).getDate()); Logger.log("..xx."+new Date("17-APR-2019 ").getDate()) 6:32:46 PM Info ...
Cherry Yap's user avatar
0 votes
0 answers
15 views

App Scripts - moving slide based on change in gsheet

Using the google products and working with app scripts to get some more automations going, but this one is frying my brain :/ In a gsheet we track the program status and in a slide deck, we have one ...
Griffle2002's user avatar
0 votes
1 answer
33 views

transfer invoice info from the entry sheet to the data sheet by apps script in google sheets

I wrote a code that transfer the info from the entry sheet to the data sheet, the problem is the invoice in the entry sheet may contain 100 rows to transfer, and when I try this way the program became ...
Data Analyst's user avatar
0 votes
1 answer
25 views

I want to add the automatically Dropdown Box based on the First value

. In this form I want to add the google apps script for automatically select the Question -2 Value (Item Name) based on Question-1 Value (SKU Code). . This is the image of sheet from I want the value ...
Gaurav Lodhi's user avatar
0 votes
1 answer
26 views

API call to sheets.spreadsheets.values.append failed with error: Empty response

I am using Google Sheet API Request and I am not getting even an error message to know what I am lacking or what I am doing wrong. I am getting API call to sheets.spreadsheets.values.append failed ...
Jericho Longabela's user avatar
0 votes
0 answers
32 views

In my GoogleAppScript program the HTML2 is not capturing my document when sending to the Google Drive via Mobile Device

My web app is hosted on Google App Script and the purpose of it is to collect signatures and send the signed document to a designated Google Drive Folder. Essentially when I use a desktop or laptop to ...
Sajal 's user avatar
  • 23
1 vote
2 answers
40 views

Create a Google Form and add an installable trigger to it from Sheets Apps Script

I have a spreadsheet with data from which a form will be created when the user selects a custom menu to do so. After this newly created form is submitted, I'd like to run another function through a ...
S. Costa's user avatar
0 votes
1 answer
24 views

How to list the members of a Group using google script

I have a group called 'library' with an email address similar to '[email protected]'. The following code, I believe, should list the members as it is a straight copy (apart from the email ...
Peter Morris's user avatar
0 votes
1 answer
20 views

Time based trigger activated multiple times

I created a trigger which runs a function every weekday around 8pm, but I accidentally have run this trigger multiple times, so the function gets activated 3 times instead of once. How do I fix this ...
Diana Economou's user avatar
-1 votes
0 answers
24 views

Google App Script onEdit event range - non-consecutive range

New to Google App script, apologies if silly question!! I have a script that I want to execute when a change is made to any cell in a given column, with the result of the script being an action upon ...
Rob Horn's user avatar
0 votes
0 answers
31 views

Calendar.Events.import throw Bad request error for recurring events

I am using Calendar.Events.import in Google AppScript to transfer events from one calendar to another, This works mostly fine. But for recurring events I get the following error: ...
luisa's user avatar
  • 82
-1 votes
0 answers
28 views

Gmail Script, auto refresh and ignore duplicates

function myFunction() { var ss = SpreadsheetApp.getActiveSheet(); var label = GmailApp.getUserLabelByName("Label"); var threads = label.getThreads(); for (var i=0; i<threads....
Joseph's user avatar
  • 1
2 votes
0 answers
40 views

Is there a way to rotate an image certain degrees in google sheet from the google apps script?

const ss = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/id..."); const sheett1 = ss.setActiveSheet(ss.getSheetByName('Sheet 1'), true) images = sheett1.getImages(); var ...
FredyH's user avatar
  • 21
0 votes
1 answer
37 views

Inventory System in sheets that will add and subtract then clear

i have inventory list in sheets and to save confusion i would like a cell that will add and one to remove the value entered into the stock and clear rather than leave the math to the person entering ...
Daniel Moore's user avatar
0 votes
0 answers
40 views

Convert PDF to Google Doc [duplicate]

I'm trying to convert several PDF files to Google Doc with OCR so that I can read the data in the files. The examples on stackoverflow use. Drive.Files.insert() But I keep getting an error. Here is ...
TheWizEd's user avatar
  • 8,265

1
2 3 4 5
1092