Skip to main content

Google Drive:Download File

Controlled node

Overview​

Download a Drive file by ID for use in your workflow.

Download one file from a connected Google Drive into the project library’s temporary-files directory. Use the resulting file object with an appropriate file reader.

Inputs​

InputTypeDescription
runEventTriggers this operation.
fileIdTextRequired Google Drive file ID. Choose a file in the picker, enter its ID, or connect the ID from an earlier node. Supply an ID, not a sharing URL.

Properties​

SettingTypeDescription
connectionConnectionSelect a Google Drive connection belonging to this project. The file must be within its permitted folder or a permitted descendant.

Outputs​

OutputTypeDescription
outputDataDownloaded library file object with fields such as id, name, mimeType, size and dir. On failure, an object with error.
doneEventFires when the node returns, including when it returns an error result. Check the data output before continuing.

File formats​

Google Docs, Sheets and Slides are exported as DOCX, XLSX and PPTX respectively. Other supported files are downloaded in their existing format. A folder is not a file to download.

A connected fileId takes precedence over the picker’s configured value. Changing the connection may require choosing the file again. The resulting library file’s id is different from the original Google Drive ID.

Example​

Select a connection and choose a PDF in the file picker. Connect Start to run. After checking output for a valid file, connect it to Read PDF’s file input and trigger Read PDF from done.

For a file found with Google Drive:List Files in Folder, extract its id with Get Value and connect that to fileId instead of choosing a fixed file.

Project connections