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

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

How to save Updated and New information to another sheet, based on multiple criteria?

I'm trying to create a Bank Reconciliation tool in Google Sheets. I have a list, Rec_FormWS, that is pulls data from Data_EntryWS. Rec_FormWS filters rows with status considered outstanding. From ...
Chris Leung's user avatar
0 votes
0 answers
4 views

Function to hide/unhide non adjacent columns

I would like to create a function to hide/unhide non adjacent columns I've tried that code (I4ve copied/paste from the forum) but as I don't understand what "hide=>" for example, I'm lost....
Sébastien Chevin's user avatar
0 votes
0 answers
54 views

Is There Any Way to Send A POST Request To Google Apps Script On A Html Page?

What I encounter I am trying to send a POST request to my Google Apps script App I deploy on an HTML page. Just like everyone else, I encounter the CORs issue. It used to work fine a couple of days ...
Steven Yin's user avatar
-2 votes
0 answers
48 views

Improving Efficiency in Google Apps Script for Cell Retrieval

I have a Google Apps Script that retrieves values from a spreadsheet based on certain conditions. While the script works as intended, I'm looking for suggestions on how to make it more efficient. Here'...
Xavier Kiba's user avatar
0 votes
1 answer
31 views

Convert list of lists to JSON

I have some data in a Google sheet that I want to convert to a .json file using Google Apps Script, however I am struggling to figure out the best way to approach it. I have an implementation already ...
Byron Piper's user avatar
1 vote
1 answer
61 views

Use HTML popup in Google Apps Script to create dynamic array

I'm trying to set up a script that will give me a popup with 6 checkboxes so i can choose which domains I want to be incorporated in an array which will be used in another script to iterate through. I ...
Kevin T's user avatar
  • 13
0 votes
3 answers
37 views

Check two values if it exists in another sheet and highlight them

I need help to find two values in another sheet and highlight them. Conditions are as follows: If code AND projects exist (highlight column A and column C) OR If code exists, (highlight column A) OR ...
user7935276's user avatar
-2 votes
0 answers
24 views

Named ranges that come from another sheet not working

I am running into a weird phenomena. I am copying a sheet over from one workbook to another on google sheets (i.e. archiving the sheet). I use the copyTo().setName() function for this purpose. The ...
Paperless's user avatar
0 votes
1 answer
28 views

App Script code returns Error. "TypeError: Cannot read properties of null (reading 'getRange') Validation @ Code.gs:5"

Below is my code a sample data. I am wanting to compare Sheet 1 data to sheet 2 data and return "True" in column C if the value in that row is in the other list. function Validation() { ...
Heath Atchley's user avatar
-1 votes
1 answer
34 views

Using Google App Script I would like to copy these 3 rows with grouping from source to destination sheet

I have a google sheet with 2 rows, grouped under 1 row. Using Google App Script I would like to copy these 3 rows with grouping from source to destination sheet. I tried few options like targetSheet....
vraviz's user avatar
  • 21
1 vote
1 answer
37 views

How to use the properties query with Drive.Files.List in Google Apps Script v5

I'm trying to use the Advanced Google Drive service in Google Apps Script to find files with a given custom property value Drive.Files.list({ "corpora": "allDrives", ...
Bran H's user avatar
  • 13
0 votes
2 answers
49 views

Searching columns and seeing if blank or not

So i would like to search a ToolID and DateIN columns and see if DateIN is blank and ToolID is NOT blank which if this is true it should put the toolID into a variable.. is this possible. so the end ...
Keanan Dunn's user avatar
0 votes
3 answers
125 views

How can I remove the empty rows before saving the data?

I have a code and the link google sheet the problem is when I fill in the data and then click on the button Submit at PrintForm sheet the data will be saved to PrintLog sheet but it includes the empty ...
abs's user avatar
  • 15
0 votes
1 answer
30 views

How to copy each 50 rows a sheet from a SpreadSheet file with the same headers to a google Drive folder?

I learning how to use Google Script. I'm trying to make a copy each 50 rows of a sheet from a Spreadsheet file with 35,000 rows and that demand a lot manualy. Please, how to do that with Google Script?...
dkrug3r's user avatar
-1 votes
1 answer
29 views

How to edit permission of a folder with Apps Script? [closed]

I have a shared Google Drive. I am making edits to the drive as the owner of the drive. Is there a way in Apps Script to edit the permission of a folder by the folder's id and the email address of the ...
Argyll's user avatar
  • 8,739
0 votes
3 answers
44 views

Get Document text at a certain position

I want to check if the character before and after the % character is a space. How can I do it using a Text object? I have the paragraph x%y but I want it to be x % y. function checkText() { try { ...
TheWizEd's user avatar
  • 7,757
0 votes
0 answers
24 views

Google Chat API - downloading messages in Google Apps Script to Google Sheets

I have Google Sheets linked with Google Chat API and Google Cloud Platform (with activated Google Chat API). I can’t download messages from Google Chat via API. These credentials download messages in ...
Piotr Magdziak's user avatar
0 votes
0 answers
28 views

Make the iframe dialog host my website in Google Sheets add-on

I'm making a Google Sheets add-on. The core of the Google Sheets add-on is a website hosted in a dialog. I'm trying to use this method to host the website in the dialog and ensure the communication ...
SoftTimur's user avatar
  • 5,396
-3 votes
1 answer
63 views

Using .map function to return data in a JSON file. Error saying its not a function [closed]

I'm getting data from an API and I parse it with JSON.parse. I then try to use .map to return the values in the keys. I'm not sure how to explain this and i've tried looking up ways to solve it. I'm ...
Robinski's user avatar
0 votes
1 answer
47 views

i want to auto fill google form by data in google spreadsheets

i have this form https://docs.google.com/forms/d/e/1FAIpQLSc4OjEgxlYpcAO7zkd9-jLNvkB3nZRsrkMv-IqVII6EnL0DnQ/viewform and i want to submit 100 response into it, every response will be 4 answers only. ...
MZ Gaming's user avatar
-2 votes
0 answers
61 views

In googlesheet custom function invocation/call, I am unable to pass query function call results as a range [closed]

In google sheet custom function invocation/call, I am unable to pass query function call results as a range, which internally calls google finance API to retrieve stock prices for a specific stock. ...
Deepak Jain's user avatar
0 votes
0 answers
26 views

Getting another page without requiring access

I am learning google apps script, and I have tried very hard to learn more. Right now I have a problem with opening another page, I deployed my app but when I click the button it shows me "need ...
Abdullah Almuqbil's user avatar
0 votes
0 answers
31 views

In google app scripts how can i get an onEdit popup when a column or row is added?

Here is my code function onEdit(e) { var sheetName = "TRK"; var range = e.range; var sheet = range.getSheet(); // Check if the edited sheet is the TRK sheet and if it's in the ...
horsefish's user avatar
0 votes
0 answers
21 views

how to receive data blocks from xlsm vba to google apps script

I have an excel sheet with more than 5 thousand records and columns. I want to take all this data to a Google Sheets on a daily basis. My question or problem is: How are data blocks received in app ...
Josue Miguel's user avatar
0 votes
1 answer
26 views

How to run an OnEdit function to other sheets with Libraries

I have 8 different Sheets with the same format and i have to run one OnEdit script in each and every one of them I also dont want the users to Edit the script because of sensitive data I created a new ...
Vansh Shah's user avatar
-1 votes
0 answers
37 views

Sending data from a google sheet to mysql table [closed]

I would like to send data from a google sheet to a mysql table. It works but it send the same wrong data to the mysql table on each execution. CREATE TABLE tablo ( id INT AUTO_INCREMENT PRIMARY KEY, ...
Kenan Thompson's user avatar
1 vote
1 answer
40 views

How would I create a Nested Default Dictionary in Javascript?

I'm trying to create an Apps Script, and I've been trying to implement a Default Dictionary. So far, I've been able to yoink a couple of things that didn't end up working, the first one was this: ...
Garfield Tong's user avatar
1 vote
0 answers
41 views

'undefined' return in Google WebApps w/ Instagram iOS Browser

I'm having an issue on opening my Google WebApps with Instagram iOS Browser. Code below shows a simple example function doGet(e) { return HtmlService.createHtmlOutput('This Page works!'); } It ...
Vitor Severino's user avatar
1 vote
2 answers
47 views

Stop the loop after the "code" is posted at the last row - google script

I am bit stuck here and trying to figure out the following: How increment the id (code) if it reaches Item-00010 or Item-00100..and so on? Is it better to start the value string to "Item-1000&...
user7935276's user avatar
0 votes
1 answer
32 views

Appscript to update values from source sheet to target sheet

I have an appscript that would copy data from source_sheet into target_sheet. There are 4 columns (Team, Name, Age, Score). I am trying to make the appscript check for changes and use the column Name ...
Ken's user avatar
  • 85
0 votes
1 answer
32 views

How to skip Python Google App Script script authentication?

I am trying to create a funtion that runs an Apps script macro on Google sheets. The apps script is deployed as an API excecutable. The original plan is to deploy the code to a scheduler. The code ...
Aditya J's user avatar
0 votes
0 answers
28 views

Creating a script to have a interactive checklist on a Google Site that saves locally

I am creating a checklist for a Google site. I am able to code one that will check off, but will not save when the page is refreshed. Because I can't use the Java script for it, I wanted to create an ...
Sarah Sallmann's user avatar
0 votes
2 answers
38 views

Set last row to certain column in Google Sheets

I have an appscript that copies data from source_sheet to target_sheet. The issue is that sometimes there are formulas in the entire Column Z of target_sheet and my appsheet will only paste data on ...
Ken's user avatar
  • 85
1 vote
0 answers
29 views

Google API Bad Request for Calendar.Events.import() [duplicate]

I'm getting the below error when trying to run a mostly vanilla Google API Script on the Vacation Calendar. It was working for months before, and I can't seem to debug why it wouldn't be working ...
Will Mearns's user avatar
0 votes
1 answer
12 views

How to unpivot data from multiple tab into one tab using app script?

I just tried this lo unpivot automatically from 1 sheets to another and it worked perfectly. however, i have to unpivot the others tab into 1 sheets and i have no idea how to unpivot data from ...
Bhirawa Anoraga's user avatar
0 votes
0 answers
45 views

Google App Script: Added a search column in the Cashier View, to overcome too many menus

I learned from other site pages, with the example of a cashier link https://script.google.com/macros/s/AKfycby_WfAMfU8bnlJ1r67PdkP8ka7ORPEeQSe9arpZ92e9trgdoRUAswAdpIKIWH7QnHUQ/exec?username=john1234&...
Ricky's user avatar
  • 1
-1 votes
0 answers
27 views

How can I integrate my code with large language models (LLMs) [closed]

How can I integrate my code with large language models (LLMs) to get answers to my questions based on the text scrapped from the link I provide. The fields/questions I want to ask: Project name Status ...
Ishita chauhan's user avatar
-1 votes
0 answers
28 views

"button" script to process a google sheet (import xlsx into new spreadsheet, delete/add columns, filter columns, compare 2 spreadsheets and copy data)

I hope one can help me with my script, I am not good at programming at all. Topic: I wrote a small script, but I need to expand it with more features to have a advantage against the manual way of ...
Friedolien's user avatar
0 votes
1 answer
54 views

How could I scrap the data from any website like an AI using python

I want to scrap the text from the website and bucket it according to my need. Want to do it with python using google ai/ml services I have tried from scratch: import requests from bs4 import ...
Ishita chauhan's user avatar
-1 votes
1 answer
33 views

Is there a way to keep my gsheet automatically sorted by date as I enter new line items of data?

https://docs.google.com/spreadsheets/d/1vQTKw4Kyzr6120TlGOSMN2gx5nM-pzq9MKpzYpImoD8/edit#gid=0 Is there a way to keep my google sheet automatically sorted by date as I enter new line items of data? ...
Molika Molly's user avatar
0 votes
2 answers
40 views

Adding a cell value to another cell then deleting the original cell value

I have sheet that i'm using to track servicings on a machine. I want to have a cell that I can put in hours the machine was used for. That value would then be added to another cell tracking total ...
iain whitson's user avatar
0 votes
2 answers
61 views

Pulling variables from Google Doc to auto-populate Google Sheet [closed]

Help Needed: So, I am working on a project where I have creative people writing story outlines in Google Docs. That Google Doc gets broken down into variables like "Element Type", "...
Hayley Simpson's user avatar
0 votes
0 answers
80 views

Apps Script Time Based Conditional Formatting

My apologies if I don't word this perfectly as I am a novice coder. I am Using Googles Apps Script I am trying to setup a system to conditionally format cells within Google Sheets. This is for a ...
Jake's user avatar
  • 11
0 votes
1 answer
42 views

How do I modify this script to start looking for a match at Row 16?

I have a spreadsheet set up like a form. In Sheet1!B2 I have the value to add/search for. In Sheet1!B3, I have comments to add/replace. The accompanying script searches for a anywhere in Sheet1!A1:...
Codedabbler's user avatar
0 votes
0 answers
12 views

Google Script Copy created the copy in my folder and not original shared folder [duplicate]

I'm very new to scripting, and I'm having an issue with the copy function, as well as finding newer relevant information. My end goal is to copy a google workbook in a shared folder to another shared ...
JeffA's user avatar
  • 1
3 votes
1 answer
146 views

How can I debug a BadRequest error when importing a calendar event in an Apps Script?

I've used the "Populate a team vacation calendar" sample at https://developers.google.com/apps-script/samples/automations/vacation-calendar to build an Apps Script to pull all Out Of Office ...
epalm's user avatar
  • 4,335
1 vote
2 answers
128 views

onChange function not firing with one option in the dropdown

I have three drop down fields, one is pulling list of accounts and another drop down field is pulling the list of properties associated with that account. Once the property is selected, the third drop ...
Arif Ahmed's user avatar
-1 votes
0 answers
51 views

How Can I Output the Result of a Query function in an Adjacent Cell For Google Sheet [closed]

I am trying to build a sheet to track my quote sheets. I can currently pull information from the Quote sheets after pasting the google link/sheet in Column F. I am currently running a script to pull ...
Eric's user avatar
  • 1
0 votes
0 answers
35 views

Create a script for editing file in specific line in Google Sheet

I am a beginner, working in government. I want to create a form so that I can edit and delete data in certain rows on certain sheets in Google Sheets, which would be very useful to support my work. ...
muhammad fathoni's user avatar
0 votes
1 answer
44 views

incomplete data from the fetch result using google data API

I want to retrieve the last 50 video data from a channel using appscript and google data API v3. the logger successfully shows 50 data from today to June. but many video data in November are not ...
Zainuz Zuha's user avatar

1
2 3 4 5
1075