Google Drive

Create, upload, and list files

Configuration

Create Folder

Operation
Create Folder
Google Drive Account*
Select Google Drive account
Or Enter File ID Manually
ID of the file to get content from
Folder Name*
Name for the new folder
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Create Folder (google_drive_create_folder)

Create a new folder in Google Drive

Input
ParameterTypeRequiredDescription
fileNamestringYesName of the folder to create
folderSelectorstringNoSelect the parent folder to create the folder in
folderIdstringNoID of the parent folder (internal use)
Output

Refer to the block outputs for this operation.


Create File

Operation
Create File
Google Drive Account*
Select Google Drive account
Or Enter File ID Manually
ID of the file to get content from
File Name*
Name of the file (e.g., document.txt)
Text Content*
Text content for the file
MIME Type
Select file type
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Output
ParameterTypeDescription
filejsonFile data
filesjsonFiles list

Upload File

Operation
Upload File
Google Drive Account*
Select Google Drive account
Or Enter File ID Manually
ID of the file to get content from
File Name*
Name of the file (e.g., document.txt)
Upload File
Upload a file to Google Drive
File Reference
Reference file from previous block (e.g., {{block_name.file}})
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Upload File (google_drive_upload)

Upload a file to Google Drive

Input
ParameterTypeRequiredDescription
fileNamestringYesThe name of the file to upload
filefileNoBinary file to upload (UserFile object)
contentstringNoText content to upload (use this OR file, not both)
mimeTypestringNoThe MIME type of the file to upload (auto-detected from file if not provided)
folderSelectorstringNoSelect the folder to upload the file to
folderIdstringNoThe ID of the folder to upload the file to (internal use)
Output

Refer to the block outputs for this operation.


List Files

Operation
List Files
Google Drive Account*
Select Google Drive account
Or Enter File ID Manually
ID of the file to get content from
Select Folder
Select a folder to list files from
Folder ID
Enter folder ID (leave empty for root folder)
Search Query
Search for specific files (e.g., name contains "report")
Results Per Page
Number of results (default: 100, max: 1000)
List Files (google_drive_list)

List files and folders in Google Drive

Input
ParameterTypeRequiredDescription
folderSelectorstringNoSelect the folder to list files from
folderIdstringNoThe ID of the folder to list files from (internal use)
querystringNoA query to filter the files
pageSizenumberNoThe number of files to return
pageTokenstringNoThe page token to use for pagination
Output

Refer to the block outputs for this operation.


Usage Instructions

Integrate Google Drive into the workflow. Can create, upload, and list files.

Notes

  • Category: tools
  • Type: google_drive