2

I'm using card services to make a Gmail addon. I am creating a pdf file of my current email and uploading it on Google Drive. I want to develop a download feature on button clicks. When the user clicks the Button, I want to download the email as a pdf from Google Drive.

Can anyone guide me on downloading files from Google Drive using the Gmail addon created in App Script?

Poojan3037
  • 310
  • 1
  • 9
  • What have you tried so far? Whenever possible, you need to include a minimal example that reproduces the issue. The only part you are missing is a button to download files from Apps Script to the computer? Are the PDF files stored in a specific folder in Google Drive? Do they have a specific name? – Giselle Valladares Jul 11 '23 at 14:42
  • Yes, the PDF files are stored in a specific folder and files have a specific name. I want to download that specific file from google drive using the Gmail addon which is created using the app script. – Poojan3037 Jul 12 '23 at 03:58
  • You can get the file and use the method `getDownloadUrl()`, you can read more information [here](https://developers.google.com/apps-script/reference/drive/file#getdownloadurl) – Giselle Valladares Jul 12 '23 at 10:58

0 Answers0