Get Started

Using Utility/Productivity Nodes (Google Drive)

Using Utility/Productivity Nodes (Google Drive)

Using Utility/Productivity Nodes (Google Drive)

Learning to Use Nodes - Google Drive Node

The Google Drive node calls the Google Drive API to manage files, folders, and shared drives. It connects to Google Drive so you can access, read, and manage files and folders.

You can use it for the full range of Google Drive's core operations — uploading, downloading, retrieving, searching, copying, moving, updating, and deleting files; creating, deleting, and sharing folders; and listing, creating, and deleting shared drives — all from a single node by selecting an "Operation." Before using this node, you need a credential with Google account authentication already completed.

Adding the Node

Click +Add Node on the canvas, then find and place the Google Drive node under the Utility/Productivity category.

Setting Up the Credential

Double-click the node to open the Node Editor. The first thing you'll see is the Credential dropdown — select the Google credential to use when running the node.

If you don't have a credential registered yet, the node can't run. Complete the 🔗Google Credential Setup guide first to register one.

Selecting an Operation

In the Operation dropdown, select the Google Drive API operation to perform. The node supports the following 18 operations.


  • List Files, Search — retrieve or search files

  • Upload File, Download File, Get File, Delete File, Copy File, Move File, Update File, Share File, Create from Text — upload, download, retrieve, delete, copy, move, update, share, or create a file from text

  • Create Folder, Delete Folder, Share Folder — create, delete, or share a folder

  • List Drives, Get Drive, Create Drive, Delete Drive — list, retrieve, create, or delete a shared drive


Once you select an operation, click +Add Variable to add the option variables it needs. See the table below for each operation's option variables.

Operation

Option Variables

List Files

query, max_results, page_token, include_trashed, timeout

Upload File

file_name, file_content, mime_type, parent_folder_id, timeout

Download File

file_id, export_format, timeout

Get File

file_id, timeout

Delete File

file_id, timeout

Copy File

file_id, file_name, parent_folder_id, timeout

Move File

file_id, parent_folder_id, timeout

Update File

file_id, file_name, file_content, mime_type, timeout

Share File

file_id, role, permission_type, email_address, timeout

Create from Text

file_name, file_content, mime_type, parent_folder_id, timeout

Create Folder

parent_folder_id, folder_name, timeout

Delete Folder

folder_id, timeout

Share Folder

folder_id, role, permission_type, email_address, timeout

Search

query, max_results, page_token, include_trashed, timeout

List Drives

max_results, page_token, timeout

Get Drive

drive_id, timeout

Create Drive

drive_name, timeout

Delete Drive

drive_id, timeout

Here's what each option variable name means.

Variable

Description

file_id / folder_id / drive_id

ID of the target file, folder, or shared drive

file_name / folder_name / drive_name

Name of the file, folder, or shared drive

file_content

Content to upload or update

mime_type

MIME type of the file

parent_folder_id

ID of the parent folder

query

Search condition (Google Drive search query syntax)

max_results

Maximum number of results to return

page_token

Token for fetching the next page

include_trashed

Whether to include items in the trash

export_format

File format to convert to when downloading (for exporting Google Docs, etc.)

role

Permission role to grant (e.g., editor, viewer)

permission_type

Type of permission target (user, group, domain, etc.)

email_address

Email address of the permission target

timeout

Request timeout

Checking the Result

The operation's result is stored in the result variable (Object type) and passed on to the next node. result is a fixed output variable — it can't be added separately or modified.

Click RUN TEST to test the node and confirm it works correctly.