Quantcast
Channel: User Tanaike - Stack Overflow
Browsing latest articles
Browse All 268 View Live

Comment by Tanaike on Unable to transfer ownership in google drive v3 api in...

@Nikhil choudhary Thank you for replying and testing it. I'm glad that this workaround is useful. Thank you, too. By the way, by the future update, the top script in my answer might be able to be used...

View Article



Comment by Tanaike on How To Set QR Code Size Where Made With goqr.me API, In...

@PSAB Plalangan Thank you for replying and testing it. I'm glad your issue was resolved. Thank you, too.

View Article

Answer by Tanaike for Access PDF Files using the Gemini API

As the current another approach, how about using the PDF data by converting the images? Gemini 1.5 API can be used for analyzing the images. The flow is as follows.Convert PDF data to images (PNG and...

View Article

Answer by Tanaike for Replacing google doc template text with placeholder...

Modification points:In your script, I think that var searchText = placeholder.substring(2, placeholder.length-2).trim(); is the string value. But, chartSheet.getCharts() is an array. So,...

View Article

Answer by Tanaike for Create a Google Form and add an installable trigger to...

In the case of the installable trigger, it can be used from the outside of the Google Docs files (Document, Spreadsheet, Form, and so on). This answer might be useful for understanding this. RefSo, I...

View Article


Answer by Tanaike for Error when entering data via Telegram bot for the...

From your showing error message of Requested writing within range [DadosTelegram!A5:D5], but tried writing to column [E], I guessed that in this case, the length of the values of values_update might be...

View Article

Answer by Tanaike for API call to sheets.spreadsheets.values.append failed...

Unfortunately, from your question, I do not know your actual situation. But, in my experience, when an error Empty response occurs with Sheets API, the inputted values are large. Ref (Author: me) If...

View Article

Answer by Tanaike for transfer invoice info from the entry sheet to the data...

I believe your goal is as follows.You want to reduce the process cost of your script.In your actual situation, there are 100 lines of the script like...

View Article


Answer by Tanaike for Data Error of #REF Data while sending Email as Excel...

In your situation, as an approach, how about converting the formulas to the cell values? When this is reflected in your script, it becomes as follows.Modified script:function...

View Article


Answer by Tanaike for Why is google app script running outside of coded...

As another approach, how about using a Google Apps Script library? I thought that the script for managing the time-driven trigger might be a bit difficult. So, I have created a Google Apps Script...

View Article

Comment by Tanaike on Error : Invalid ID while creating projects in map using...

@Antonio Thank you for replying and testing it. I'm glad your issue was resolved. And, I could correctly understand your issue with your cooperation. Thank you, too.

View Article

Answer by Tanaike for Can not make a copy of appscript file using drive...

This is just my guess. From your question and your the following reply,Yeah Drive api service is enabled. There is no message error. It's seems like we can not copy an appscript file in a share drive...

View Article

Image may be NSFW.
Clik here to view.

Answer by Tanaike for The thumbnail of a presentation is empty immediately...

I had the same situation with you. Unfortunately, I'm not sure whether this is the current specification or a bug. But, at that time, when Slides API was used, I noticed that the thumbnail could be...

View Article


Answer by Tanaike for Calendar event missing methods?

Modification points:I guessed that from your showing script, you might think of Calendar API (Calendar) and Calendar service (CalendarApp) as the same. Unfortunately, those are different.If you want to...

View Article

Answer by Tanaike for Google scripts code to send each row of a Google sheet...

Modification points:In your script, at for (var i = 1; i = lastline; i++) {, i is always the value of i = lastline, and the for loop is not finished.I think that data in your script is a Class Range...

View Article


Answer by Tanaike for Google Apps Script - Update PDF from Sheets and Keep...

I believe your goal is as follows.You want to update the existing PDF file instead of creating a new PDF file using Google Apps Script.In this case, how about using Drive API? When this is reflected in...

View Article

Comment by Tanaike on Google forms to Pdf add image

@Esat Kurtul Thank you for replying. I'm glad your issue was resolved. About your new question of What should I do when I need to select IMAGE2 IMAGE3 IMAGE4, how about modifying {IMAGE1} of...

View Article


Comment by Tanaike on Refresh dropdown options on HTML form embedded in modal...

@Codedabbler Thank you for replying. About your additional 2 requests, I updated my answer. Please confirm it. And, pleaes modify your confirmation message to your actual situation.

View Article

Image may be NSFW.
Clik here to view.

Answer by Tanaike for Is IMPORTHTML in SHEETS not working anymore?

About your situation, I confirmed the same situation. It seems that IMPORTHTML and IMPORTXML cannot be used for your URL. But, fortunately, when I tested your URL using UrlFetchApp of Google Apps...

View Article

Answer by Tanaike for Error when trying to do multiturn chat with gemini-pro

As a simple modification, how about the following modification?Modified script 1:genai.configure(api_key=apiKey)model = genai.GenerativeModel("gemini-pro")messages = [{"role": "user", "parts":...

View Article

Answer by Tanaike for My Python script can't access my Google Sheet

What version of gspread are you using? It seems that the latest version is 6.1.0. In the case of version 6.1.0, when the service account is used, the following script can be used.Before you use this...

View Article


Answer by Tanaike for onEdit(e) not running when a non-google-user changes...

In your situation, how about modifying as follows?Modified scriptThe function name is renamed from onEdit to installedOnEdit. And, please install the OnEdit trigger to installedOnEdit. Ref And test it...

View Article


Comment by Tanaike on How to Merge PDF Pages Into One Long Page in Appscript

@K J Thank you for your information. It will be useful for users.

View Article

Answer by Tanaike for How to Sum Duplicate Items in a Two Dimensional Array...

I believe your goal is as follows.You want to convert the value of arr1 to reducedArr1 using Google Apps Script.As another approach, how about the following sample script?Sample script:// This is your...

View Article

Comment by Tanaike on Amend the script to "import in-cell images" as well...

@love_boring_ Thank you for replying and testing it. I'm glad your issue was resolved. About Sorry I could not upvote since me being a new user!, it's no problem. Thank you, too.

View Article


Comment by Tanaike on How to use spreadsheets.values.batchUpdate with Google...

@Old Geezer About your question of Which is the official reference for @googleapis/sheets for Node.js?, I checked Google APIs Node.js Client. github.com/googleapis/google-api-nodejs-client For example,...

View Article

Comment by Tanaike on Sumproduct through Google Script PT2

About @Tanaike Tagging person who suggested I create a new question., in your "Dataset Result (New Requirement)" sheet, columns "C" to "E" have only "Incomplete". Can I ask you about the reason for...

View Article

Comment by Tanaike on Sumproduct through Google Script PT2

@DanCue Thank you for replying. From your reply, I added one more script. Please test it again. I guess that in that case, the process cost might be able to be reduced a little.

View Article

Comment by Tanaike on How to generate Multiple Responses for single prompt...

@Curious Learner Thank you for replying. About I ran your code. I am getting the error BadRequest: Only one candidate can be specified too, I got the same response. From this response and the official...

View Article



Comment by Tanaike on How do I use Google's Gemini with a large amount of...

Although I'm not sure whether my proposal approach is your expected direction, I posted it as an answer. Please confirm it. If that was not useful, I apologize.

View Article

Answer by Tanaike for Count total number of pages in pdf file

Unfortunately, there are no methods for directly retrieving the total pages from a PDF file using Google APIs yet. So how about these workarounds? Please choose it for your situation.Workaround 1:In...

View Article

Answer by Tanaike for Google Sheets Image() function now requires users to...

From this X and this blog, in the current stage, your issue can be resolved using Sheets API by the official update.The official document says as follows. RefimportFunctionsExternalUrlAccessAllowed:...

View Article

Answer by Tanaike for How do I use Google's Gemini with a large amount of...

I'm unsure whether this approach is ideal for your specific situation. Therefore, consider it as one of several options available.Simple Approach: Corpus and generateAnswerThis approach utilizes a...

View Article

Browsing latest articles
Browse All 268 View Live




Latest Images