Download File

Download a file by its ID from Google Drive.

Input

Field Definition Type Required

File ID

The unique ID associated with the file to be downloaded.

Text TRUE

Options

Download Format

Choose the file type to use when downloading native Google files, such as Docs, Sheets, or Slides. Selecting this option triggers a conversion process to export the files in the following formats:

  • Do not convert
  • .CSV - Comma-Separated Values
  • .DOCX - Microsoft Office Document
  • .EPUB - Electronic Publication
  • .HTML - Hypertext Markup Language
  • .JPEG - Joint Photographic Experts Group
  • .ODP - OpenDocument Presentation
  • .ODS - OpenDocument Spreadsheet
  • .ODT - OpenDocument Text
  • .PDF - Portable Document Format
  • .PNG - Portable Network Graphics
  • .PPTX - Microsoft PowerPoint Presentation
  • .RTF - Rich Text Format
  • .SVG - Scalable Vector Graphics
  • .TSV - Tab Separated Values
  • .TXT - Plain Text
  • .XLSX - Microsoft Excel Spreadsheet
  • .ZIP - Zipped Archive

If you select Do not convert, then the card dynamically calls the Google Drive API to get the MIME type of the file. The card uses the type to construct the URL. The constructed URL is used when exporting the file from the Google Drive API.

The Download Format dropdown menu contains a list of statically defined MIME types. If you select a different statically defined MIME type, then the selected MIME type is used to construct the URL.

The values from the Download Format dropdown menu and the file name and extension are independent. After a file is downloaded, it's stored with the file name provided by Google Drive.

This option isn't supported for non-native Google files.

Dropdown FALSE

A file must be at least 1 byte in size, but cannot be larger than 2 GB. See Workflows system limits.

Output

Field Definition Type

File Content

The unique ID associated with the file content in the Workflows file system.

Text