Google Drive download file

Nintex external platform is required for this feature. For details, see Enable Nintex external platform features.

Downloads a file from Google Drive identified by either the file ID or the file name. The file ID can be retrieved from the following actions: Google Drive query files and Google Drive upload file.

Note: If the service encounters multiple folders with the same name, it will only access the most recently modified folder. Likewise, if the service encounters multiple files with the same name, it will only download the most recently modified file.

Action settings

Following are the fields and options visible in the configuration settings dialog box for this action.

Field Description

Identify file by

Select one of the following options.

  • File name and source folder: Identifies file by its name and (optionally) source folder.
  • File ID: Identifies file by its ID.

    Note: To find a Google Drive file ID, retrieve a link using Get Link and then locate the characters after "id=" as indicated in bold in the following example: 
    https://drive.google.com/open?id=FILE_ID

File ID or name

Specify the ID or the name of the file to download, according to the option selected for Identify file by. If specifying a file name, include the extension when applicable.

Source folder

Specify the folder containing the file to be downloaded.

Example: Crestan\Depts

Note: If multiple folders of the same name exist, only the most recently modified folder is accessed.

Authorizing user

Specify an email address for the authorization request. External email addresses can be used.

Convert

When a conversion format is selected, converts the file specified for download from the source Google Drive format.

Note: Conversion is required when downloading files of Google Drive formats, such as Google Docs or Google Sheets. Files of Google Drive formats that are not converted are corrupted on download and thus unusable.

Select one of the following options. Source formats supported for conversion by the Google Drive API are indicated in parentheses.*

  • No conversion: Downloads the file as-is.

    Use this option when the file is not in a Google Drive format.

  • CSV: Converts the file to CSV format before download. (Google Sheets)
  • DOCX: Converts the file to DOCX format before download. (Google Docs)
  • HTML: Converts the file to HTML format before download. (Google Docs)
  • JPEG: Converts the file to JPEG format before download. (Google Drawings)
  • PDF: Converts the file to PDF format before download. (Google Docs, Google Drawings, Google Sheets, Google Slides )
  • PNG: Converts the file to PNG format before download. (Google Drawings)
  • PPTX: Converts the file to PPTX format before download. (Google Slides)
  • RTF: Converts the file to RTF format before download. (Google Docs)
  • SVG: Converts the file to SVG format before download. (Google Drawings)
  • TXT: Converts the file to TXT format before download. (Google Docs, Google Slides)
  • XLSX: Converts the file to XLSX format before download. (Google Sheets)

*As of September 2015

If the Google Drive API does not support conversion from the source format to the selected destination format, then an error message is logged to workflow history when the action is executed.

Output

Store output for this action using the following selections.

  • Save file as: Select one of the following items.
    • Current item attachment (option available for workflows associated with lists): The downloaded file will be attached to the list item that the workflow is running on.
    • Overwrite current item (option available for workflows associated with document libraries): The downloaded file will overwrite the current item that the workflow is running on.
    • URL: Enter a server relative URL to a document library within the current site. Include filename and extension.