Questions tagged [google-apps-script-api]

DO NOT USE THIS TAG ALONE. Use for questions regarding programmatic manipulation of Google Apps Scripts through the REST-Google Apps Script API. Use in addition to the language tag (like [python], [java], [c#]) and the google-api library tag(like [google-api-java-client]) that is used to do the said manipulation.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
23 views

Export Kustomer data to Google Sheets with API & Apps Script

I want to export data from my Kustomer instance to Google Sheets using the Kustomer API. I'm starting with just the list of customers in the org's account. I've successfully gotten everything ...
Sarah Sanders's user avatar
0 votes
2 answers
113 views

Apps Script API Getting a 404 error when using `https://script.googleapis.com/v1/scripts/${fileId}:run`

I'm trying to run a function in another script file. Here is my code: function testGet(fileId = "1JjRpqhqJMvXETMMzlYFnuulni6DuwLl9jxlYnGNNm45NwzPXdtcWOK0a") { const url = `https://script....
Alex Libengood's user avatar
1 vote
0 answers
42 views

How do I update my users' contacts and contact photos with the Google People API?

I'm attempting to create contacts for my Google Workspace users to be pushed to their iOS devices via MDM Account Configuration. I'd like to include a contact photo with each contact, as well. I'm ...
Jack Test's user avatar
0 votes
1 answer
111 views

Calling Google Apps Script functions with Python: "Requested entity was not found"

Trying to call a GAS function with Python from Cloud Shell Editor, but not sure what I'm doing wrong. I scoured through stackoverflow, and tried using executable API, but that forced me to use OAuth2....
user3245228's user avatar
0 votes
1 answer
41 views

Enable Apps script API for user via apps script

Despite of what documentation says as of today, I have managed to use Apps script API with a service account I'm trying to find a way to programmatically enable the Apps Script API for all my domain ...
Daniele Debiagi's user avatar
0 votes
0 answers
32 views

Share App Script to Google Sheet template for External use

First of all I am no pro/ don't really understand coding etc., just using everything that is available online. I have added to my google sheet template App Script code which works fine. As I will be ...
Tryingandtrying's user avatar
0 votes
0 answers
41 views

Getting 401 response when trying to access apps script from flutter application

I am building an organisation level flutter application in which user can enroll for the particular google calendar event. This calendar events are created by admin account of organisation. So, to ...
Suyash Sawant's user avatar
1 vote
1 answer
65 views

screenshot from copy of google slide

I'm new to google App Script. I made this script for copying a template slide show and after the copy is made i fill it with tekst of a google sheet. When it's ready I want to make screenshots of the ...
aaron's user avatar
  • 13
3 votes
1 answer
70 views

Google Apps Script Importation of a CSV file into Google Sheets from Gmail Sub-Label

I am very new to google apps script and I am trying to automated some daily reports. I receive updated reports to my inbox daily and I am trying to use a code to grab this updated CSV report daily ...
avaf's user avatar
  • 31
1 vote
1 answer
235 views

AppsScript for Google Docs - How do I add / edit / delete Variable Smart Chips in Google Docs programmatically with appsscript addon?

AppsScript for Google Docs - How do I add / edit / delete Variable Smart Chips in Google Docs programmatically with appsscript addon? New Variable Smart Chips feature for Google Docs Reference: https:/...
Sarath Bade's user avatar
0 votes
0 answers
28 views

Google Selector API Fails When Logged in with More Than 1 Google Accounts in Apps Script

I am using the The Google Picker API in an Apps Script project and it works well. However, when I am logged in with more than 2 Google accounts, the The Google Picker API fails. I think this is ...
MAKE OUT HILL 666's user avatar
0 votes
1 answer
60 views

Personal Gmail Google Doc Apps Script Will Not Allow Authorizing - This app is blocked

I can't seem to authorize a Google Doc Apps Script to run. When adding permissions Google keeps returning: "This app is blocked This app tried to access sensitive info in your Google Account. To ...
user10583271's user avatar
0 votes
2 answers
129 views

onEditHandler works but onSelectionChange fails with Exception: You do not have permission to call UrlFetchApp.fetch. Required permissions:

I want that when the button is clicked (which is just an image within the cell), the function to translate the text is fired: When using onSelectionChange, the following error is output: Exception: ...
chelder's user avatar
  • 3,849
0 votes
0 answers
23 views

How to work around with App Script API with Service account [duplicate]

I want to call Apps Script API in my app, it works fine with web user authentication but has a 403 error when I change to using a service account. I discovered that the reason is that the Apps Script ...
Khuyen Ho's user avatar
0 votes
0 answers
37 views

Where can I find a list of Google print parameters

I am trying to write scripts to automate creating a PDF from a range of cells in Google Sheets. I can't find a list of the print parameters for Google Print. Where can I find these? I've found the ...
Elder Moore's user avatar
0 votes
1 answer
471 views

Google App Script - Set trigger when data is added to a specific column via a function

I have a table in which column I gets updated programmatically via an Array Formula. And when that happens, i.e a new row of data is added in column I, I want to run the fillTemplateAndDuplicate ...
offdutyventures's user avatar
0 votes
1 answer
536 views

TypeError: Cannot read properties of null (reading 'setTabColor')

I have minimal knowledge about coding or javascript but I tried to generate a code with ChatGPT but when I try to run it in google apps script it gives me an error saying: TypeError: Cannot read ...
Eppu Niemi's user avatar
0 votes
0 answers
55 views

How to make Google oauth work in Python Quickstart

I am trying to run a Python script that accesses Google apps using Google's Python Quickstart on Python 3.10 on Windows 11 (originally installed as W10). The early steps are: enable the API, Create ...
WesR's user avatar
  • 1,312
2 votes
1 answer
242 views

Sanitize data in Google Apps script (XSS)

The script: The script i'm working on is getting input from Google Forms and after some things done with the data from the form the script will build up an e-mail and send it to a user / some users. ...
Jeffrey's user avatar
  • 33
0 votes
1 answer
146 views

Google Apps Script: appendRow() getting values like [Ljava.lang.Object;@66e6c522

function doGet(e){ var p = e.parameters; try { if ("username" in p) { // user info get let id = p.ID; let username = p.username; let time = p.time; let email =...
shenkwen's user avatar
  • 3,656
0 votes
1 answer
88 views

Unable to call DocumentApp.openById. with onEdit() in GooglApps Script and Sheets

I'm still very new to Javascript and Apps script in particular so sorry if this is dumb. I'm currently trying to create a mail merge tool. The Idea is that each field in a spreadsheet is manually ...
Phil Tomlinson's user avatar
0 votes
0 answers
114 views

Speed up adding Items to Forms with Apps Script

I'm wondering if there is a more efficient way to add Items to Google Forms with App Script. My script is taking a long time and I'm wondering if there's anyway to add items more efficiently using an ...
Sherif's user avatar
  • 23
0 votes
0 answers
948 views

NodeJS Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

I am trying Google Apps Script API. I receive this Request is missing required authentication credential" error by trying service.scripts.run({ // params }). Can somebody help me figure out, ...
jnewbie's user avatar
  • 11
0 votes
1 answer
82 views

How to allow other user to execute script on Google Apps Script

I have script that works fine on my account but I want other user to be able to use that script over API Executable. var serviceScript = new ScriptService(new BaseClientService.Initializer(...
wedo's user avatar
  • 129
0 votes
1 answer
56 views

Enable other users to run Google App Script Function on protected sheet

I'm new to Google App Script and have created this function that allows members to submit data through a form. I want to protect the sheet where form records the data in so that the other users can't ...
din2345's user avatar
  • 33
0 votes
1 answer
279 views

Running Google Apps Script for a Google Doc from inside a Google Chrome extension

I am trying to make a chrome extension that adds an extra custom menu to google docs. I have already figured out how to make an extension, and I also have figured out how to make an extra menu in apps ...
Gibson DeGroot's user avatar
1 vote
1 answer
43 views

Adding Google Classroom ID based on user enrollment code

I have a spreadsheet where a user can list classes and Google Classroom enrollment codes, represented by the array userClassCodes. This array is allowed to contain blank values when the range contains ...
MeesterZee's user avatar
0 votes
1 answer
65 views

Is there branching functionality on a Google Apps Script Project?

I am new to Google Apps Script projects, and have a Google Calendar add-on that I have been working on. My users recently came across some bugs, and I realized that I had no idea how to go back to the ...
Andrew's user avatar
  • 9
0 votes
1 answer
443 views

Use base64 encoded image in Google Chat card image widget

I am using the Google Chat card api to send a card back to a user to answer their questions. I wish to include an image within the results, however a direct URL cannot be provided since it is only ...
Michael Pulis's user avatar
0 votes
1 answer
171 views

403 The caller does not have permission when calling Apps Script API from a Cloud Function

I'm building a Workspace addon that you launch from Google Drive and that will be executed as a background task. To do so my apps script addon calls a Google Cloud Function that calls the Apps Script ...
ValLeNain's user avatar
  • 2,264
-1 votes
1 answer
114 views

How do you run the same API multiple times on Google Apps Script?

So I'm totally new at using Google Apps Script, basically just started a few hours ago. Also new to stackoverflow so excuse my formatting. For the life of me, I cant seem to find how to run Bored API ...
Ginasimran Kaur's user avatar
1 vote
1 answer
181 views

Automate running several projects at once in google script

I have multiple spreadsheet bound projects, and I want once in a while run all of them together. Is there a possibility to automate this, as I do not want open each project and run it manually. And as ...
Alina's user avatar
  • 33
0 votes
2 answers
467 views

"The script completed but the returned value is not a supported return type."

I created a very simple app script that returns ContentService.createTextOutput("Hello"), associated it with a Google Cloud project, and created a JavaScript program to get the return value. ...
Ethan Strominger's user avatar
1 vote
1 answer
269 views

Is there way to Pre-Fill name from the signed in Google Account in Google Forms?

I need to pull the name off of the GSuite Business account name and have it automatically be filled in the form when opened along with the email address. Is this possible using Apps Script?
Shoaib Alam's user avatar
0 votes
1 answer
115 views

Google Apps Script API give entire organization read access for a Script

I am developing an add-on for Google Docs. The add-on is being constantly updated and therefore I have created an auto-update mechanism which works by saving the last script version used to a Document ...
Yuval.R's user avatar
  • 1,207
-1 votes
1 answer
588 views

How do I connect a script application to the Google Cloud Platform?

How do I connect a script application to the Google Cloud Platform? I found how to do it manually. But how to do it programmatically? File file3 = new File() .setName("appsscript&...
Александр Хворостенко's user avatar
0 votes
0 answers
49 views

Iterating API parameter in google app script

I'm trying to use this API to fetch data directly in my google spreadsheet, I'm using Google AppScript. Below is my API =ImportJSON("https://rest.yyy.com/v2/matches?date=2022-06-01(Date start - ...
Yogesh's user avatar
  • 13
0 votes
0 answers
176 views

Google Calendar trigger - Script function not found

I implemented a Google Calendar AddOn for hundreds of users which also installs a calendar trigger for each user to run some business logic whenever something changes in the user's calendar. The ...
zlZimon's user avatar
  • 2,446
0 votes
1 answer
400 views

404 requested entity was not found error in appscript deployment api

Hello i am trying to deploy an appscript project using the rest api for appscript, it gives me a 404 error in response, my code looks like this The google appscript api is enabled on my account and i ...
sudip-modi's user avatar
2 votes
2 answers
294 views

Apps script that shares a google sheet to a specific group of people

I have an apps script that creates a new Google worksheet each time a new entry is made in Column A of sheet1 of a Master Sheet and renames that new worksheet to the last entered data in column A of ...
Damilola Ogundun's user avatar
0 votes
1 answer
659 views

Copy Image Google Apps Script

I built a script that copies the contents of document A and pastes it into a new document, document X. Document B,C,D etc are also copied into document X. All the contents copy over great and ...
Wesleyb2013's user avatar
0 votes
1 answer
945 views

how to get a row number in a column if a cell in another column has some data using google apps script?

i have a sheet that have 5 columns (date , id , name , number ,row number) and i want the fifth column(row number) to be auto filled with the row number when i insert any data in the second column(id) ...
Ahmed Zaqout's user avatar
1 vote
1 answer
537 views

Using GS to Import data from GA4 runRealtimeReport into Google Sheets

On Google AppsScript, I have been trying to pull real-time user data from a GA4 property into a google sheet. However, I keep getting the following error message: "API keys are not supported by ...
Arvind's user avatar
  • 13
-1 votes
1 answer
680 views

How to get data from specific cells in a sheet and send them to another sheet into different columns?

How do I make something that sends values from specific cells in a google sheet (say SHEET 1) to another sheet (say SHEET 2)? Can I make a menu button or something that would help me do that? Also, ...
gg0wwrr1's user avatar
1 vote
1 answer
228 views

Apps Script projects.deployments.create throwing GaxiosError: Requested entity was not found

I am trying to set up a onEdit trigger for Google SHeets using the Apps Script API. I have managed to create and update a script project by the code given below (this is working fine) const ...
Rajkumar Gaur's user avatar
1 vote
1 answer
106 views

How to pass creativeId into CampaignCreativeAssociations.insert() method using Google CM360 API

I'm using Google Apps Script and using the DoubleClickCampaigns services v3.5, which allows me to use CM360 APIs v3.5 I'm trying to associate a creative to a campaign using ...
kevhol's user avatar
  • 35
-1 votes
1 answer
98 views

How do I get the subject and body of every mail that I click to my add on that I created?

I want to create an add-on similar to Trello. Every time you open a mail, Trello automatically fills in the "Name" and "Description" fields for you. The name here is the "...
2ach's user avatar
  • 1
1 vote
1 answer
305 views

How to batch the calls in google app script

I was trying to optimize runtime some code that ran really slowly, when searching it up google came up with this: https://developers.google.com/apps-script/guides/support/best-practices#:~:text=Use%...
Black sky's user avatar
0 votes
2 answers
754 views

How to schedule a BigQuery run through Apps Script

I have a connected sheet that has results of a bigquery query(extract sheet). I created a preview of the results sheet. How do i write an appscript fuction to refresh the results in the extract and ...
user17243359's user avatar

1
2 3 4 5