Skip to main content

All Questions

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

How can I copy a folder using Apps Script?

I have a Folder A, and I want to get Copy of Folder A, let's say within Folder A. var folderA = getFolderA(); var folderA_ID = getFolderA_ID(); var copyFolderA = folderA.makeCopy(folderA_ID); // ...
Gareth Flandro's user avatar
0 votes
0 answers
78 views

setOwner(emailAddress) method returns a Exception: Access denied: DriveApp error? Is there a fix to this? [duplicate]

function transferOwnership() { const fileId = "some-sheet-id-that-i-own"; const newOwnerEmail = "[email protected]" const file = DriveApp.getFileById(fileId); const ...
Oak's user avatar
  • 21
-2 votes
1 answer
118 views

Google Apps Script Function to Add a Gmail Attachment to Google Drive

I'm trying to write a Google Apps script which automatically adds my Gmail attachments to Google Drive. What I have been able to accomplish is to create a copy of the Gmail attachments in the Google ...
Nrupesh's user avatar
  • 59
0 votes
1 answer
128 views

How to save new create documents in one file?

I'm creating several doc.files according to the template, I take data from the sheet. Everything is saved in different files. Please help me to save the new files in one document. function myFunction()...
Татьяна Со's user avatar
-3 votes
2 answers
91 views

Passing image in Google drive to multimodal LLM [closed]

I'm trying to upload an image from Google drive to an LLM from analysis. I have the working code below: function openRouterApiRequest() { var apiKey = "****"; // var imageUrl = 'https://...
user1592380's user avatar
  • 36.6k
0 votes
1 answer
61 views

How to solve Exception: Service error: Drive

I have this code that can copy and edit spreadsheet in the same parent folder. A few months ago it still work but now i get this error message Exception: Service error: Drive. Here's the code var ...
Trem Trem's user avatar
0 votes
1 answer
47 views

Google Slides add-on vrerification oauth scope

I'm now oauth verification for the Slides add-on by google apps script. First, I use drive.readonly scope. OAuth Dev teams point use drive.file scope instead of drive.readonly. So I rewrite my app ...
Toshiyuki Kawashima's user avatar
0 votes
1 answer
61 views

Can Slides API use only drive.file scope

I oauth verification for the Slides add-on. OAuth Dev verification point next mail. Minimum Scope Requirement You requested the following sensitive scope(s): https://www.googleapis.com/auth/...
Toshiyuki Kawashima's user avatar
0 votes
2 answers
89 views

Expiration date of a Drive access

I managed to implement editor access to my file using the help found here: Drive.Permissions.create({ role: "writer", type: "user", emailAddress: destinataireEd1 }, fileId, { ...
Nicolas's user avatar
  • 145
1 vote
0 answers
53 views

Avoid sending notification when updating access permissions [duplicate]

In a previous discussion, I reported my problem of updating editing rights on a document from a script and the URL of a file (Drive.Permissions.create is not a function). A solution was proposed to me ...
Nicolas's user avatar
  • 145
0 votes
1 answer
139 views

Drive.Permissions.create is not a function

In a management file, I try to be able to give editor rights by script to addresses entered in a tab: the emails for which I want to update the editor rights are added in columns C and D of the ...
Nicolas's user avatar
  • 145
2 votes
3 answers
151 views

Not able to export Google Drive files using drive.file scope

As mentioned in Drive V3 - files.export API documentation and API scopes documentation, if I have access to drive.file scope I should be able to export the drive dcoument, but it is not working as ...
aaryan's user avatar
  • 2,491
0 votes
1 answer
78 views

Cannot create files using auth/drive.file OAuth scope

I am working on a Google Sheets Addon written in Apps Script. I have been recommended by the review team to use the https://www.googleapis.com/auth/drive.file scope but I can't find any way to make it ...
joon's user avatar
  • 870
1 vote
1 answer
184 views

Using Google File Picker to reduce drive scopes in apps script add-on

I am working on a Google Docs Extension (Add-on) that exports a file into the same folder as the current document. I need my script to use the narrowest scopes so it can pass the verification process ...
Dagmar's user avatar
  • 3,291
1 vote
1 answer
68 views

Not able to convert Excel file into google sheet

I have an XLS file in Google Drive. Using Google Apps Script, trying to convert to Google Sheets. But it is being stored as Google Docs instead. function readBlob() { var file = DriveApp.getFileById(...
Active Hub's user avatar

15 30 50 per page
1
2 3 4 5
145