Google Drive

App · File Storage · 6 actions · 1 trigger

Upload, move, and manage files in Google Drive.

Triggers

Start a workflow when something happens in Google Drive. See how triggers work.

Google Drive New File

Triggers when a new file is added to Google Drive.

Filters

Narrow which events start a run.

folder_id
mime_type
name_pattern

Event fields

What a run starts with. Later steps read each field with an @ reference.

idtext
nametext
mime_typetext
created_timetext
modified_timetext
web_view_linktext

Actions

ActionWhat it does
Create folderCreate a folder in Google Drive and return a link to it.
Delete fileDelete a file from Google Drive.
Download file from URLDownload a Google Drive file given its sharing URL.
Duplicate fileDuplicate a file in Google Drive and return a link to the copy.
Move fileMove a file to a different folder in Google Drive.
Upload fileUpload a file to Google Drive and return a link to it.

Create folder

Create a folder in Google Drive and return a link to it.

Inputs

Folder namefolder_nametextRequired
The name of the folder to create.
Parent folder URLparent_folder_urltext
The Google Drive URL of the folder to create the new folder in.

Outputs

Response envelope; the payload is in the "folder_link" field.

folder_linktext
A link to the created folder
Example output
{
  "folder_link": "https://drive.google.com/drive/folders/newfolder123"
}

Delete file

Delete a file from Google Drive.

Inputs

File URLfile_urltextRequired
The Google Drive URL of the file to delete.

Outputs

Response envelope; the payload is in the "deleted" field.

deletedtrue/false
Whether the file was deleted
Example output
{
  "deleted": true
}

Download file from URL

Download a Google Drive file given its sharing URL.

Inputs

File URLfile_urltextRequired
The sharing URL of the Google Drive file.
Download folderdownload_dirtext
The folder to save the downloaded file in.

Outputs

content_typetext
filenametext
size_bytesnumber
Example output
{
  "content_type": "application/pdf",
  "filename": "downloaded_file.txt",
  "size_bytes": 1024
}

Duplicate file

Duplicate a file in Google Drive and return a link to the copy.

Inputs

File URLfile_urltextRequired
The Google Drive URL of the file to duplicate.
Destination folder URLdestination_folder_urltext
The Google Drive URL of the folder to place the copy in.
New namenew_nametext
The name for the copy.

Outputs

Response envelope; the payload is in the "duplicate_link" field.

duplicate_linktext
A link to the duplicated file
Example output
{
  "duplicate_link": "https://drive.google.com/file/d/xyz789/view"
}

Move file

Move a file to a different folder in Google Drive.

Inputs

File URLfile_urltextRequired
The Google Drive URL of the file to move.
Destination folder URLdestination_folder_urltextRequired
The Google Drive URL of the folder to move the file to.

Outputs

Response envelope; the payload is in the "file_link" field.

file_linktext
A link to the moved file
Example output
{
  "file_link": "https://drive.google.com/file/d/abc123/view"
}

Upload file

Upload a file to Google Drive and return a link to it.

Inputs

Filefile_pathtextRequired
The file to upload, chosen with the file picker.
Folder URLfolder_urltext
The Google Drive folder URL to upload the file to.
File typemime_typetext
The file's format, for example 'application/pdf'.

Outputs

Response envelope; the payload is in the "upload_link" field.

upload_linktext
A link to the uploaded file
Example output
{
  "upload_link": "https://drive.google.com/file/d/abc123/view"
}

On this page