FetchGoogleDrive 2025.10.9.21

Bundle

org.apache.nifi | nifi-gcp-nar

Description

Fetches files from a Google Drive Folder. Designed to be used in tandem with ListGoogleDrive. Please see Additional Details to set up access to Google Drive.

Tags

drive, fetch, google, storage

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Google Doc Export TypeGoogle Documents cannot be downloaded directly from Google Drive but instead must be exported to a specified MIME Type. In the event that the incoming FlowFile’s MIME Type indicates that the file is a Google Document, this property specifies the MIME Type to export the document to.
Google Drawing Export TypeGoogle Drawings cannot be downloaded directly from Google Drive but instead must be exported to a specified MIME Type. In the event that the incoming FlowFile’s MIME Type indicates that the file is a Google Drawing, this property specifies the MIME Type to export the drawing to.
Google Presentation Export TypeGoogle Presentations cannot be downloaded directly from Google Drive but instead must be exported to a specified MIME Type. In the event that the incoming FlowFile’s MIME Type indicates that the file is a Google Presentation, this property specifies the MIME Type to export the presentation to.
Google Spreadsheet Export TypeGoogle Spreadsheets cannot be downloaded directly from Google Drive but instead must be exported to a specified MIME Type. In the event that the incoming FlowFile’s MIME Type indicates that the file is a Google Spreadsheet, this property specifies the MIME Type to export the spreadsheet to.
connect-timeoutMaximum wait time for connection to Google Drive service.
drive-file-idThe Drive ID of the File to fetch. Please see Additional Details for information on how to obtain the Drive ID.
gcp-credentials-provider-serviceThe Controller Service used to obtain Google Cloud Platform credentials.
proxy-configuration-serviceSpecifies the Proxy Configuration Controller Service to proxy network requests.
read-timeoutMaximum wait time for response from Google Drive service.

Relationships

NameDescription
failureA FlowFile will be routed here for each File for which fetch was attempted but failed.
successA FlowFile will be routed here for each successfully fetched File.

Writes attributes

NameDescription
drive.idThe id of the file
filenameThe name of the file
mime.typeThe MIME type of the file
drive.sizeThe size of the file. Set to 0 when the file size is not available (e.g. externally stored files).
drive.size.availableIndicates if the file size is known / available
drive.timestampThe last modified time or created time (whichever is greater) of the file. The reason for this is that the original modified date of a file is preserved when uploaded to Google Drive. ‘Created time’ takes the time when the upload occurs. However uploaded files can still be modified later.
drive.created.timeThe file’s creation time
drive.modified.timeThe file’s last modification time
drive.ownerThe owner of the file
drive.last.modifying.userThe last modifying user of the file
drive.web.view.linkWeb view link to the file
drive.web.content.linkWeb content link to the file
drive.parent.folder.idThe id of the file’s parent folder
drive.parent.folder.nameThe name of the file’s parent folder
drive.shared.drive.idThe id of the shared drive (if the file is located on a shared drive)
drive.shared.drive.nameThe name of the shared drive (if the file is located on a shared drive)
error.codeThe error code returned by Google Drive
error.messageThe error message returned by Google Drive

Use Cases Involving Other Components

Retrieve all files in a Google Drive folder

See also