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_idmime_typename_pattern
Event fields
What a run starts with. Later steps read each field with an @ reference.
idtextnametextmime_typetextcreated_timetextmodified_timetextweb_view_linktext
Actions
| Action | What it does |
|---|---|
| Create folder | Create a folder in Google Drive and return a link to it. |
| Delete file | Delete a file from Google Drive. |
| Download file from URL | Download a Google Drive file given its sharing URL. |
| Duplicate file | Duplicate a file in Google Drive and return a link to the copy. |
| Move file | Move a file to a different folder in Google Drive. |
| Upload file | Upload 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 name
folder_nametextRequired - The name of the folder to create.
- Parent folder URL
parent_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 URL
file_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 URL
file_urltextRequired - The sharing URL of the Google Drive file.
- Download folder
download_dirtext - The folder to save the downloaded file in.
Outputs
content_typetextfilenametextsize_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 URL
file_urltextRequired - The Google Drive URL of the file to duplicate.
- Destination folder URL
destination_folder_urltext - The Google Drive URL of the folder to place the copy in.
- New name
new_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 URL
file_urltextRequired - The Google Drive URL of the file to move.
- Destination folder URL
destination_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
- File
file_pathtextRequired - The file to upload, chosen with the file picker.
- Folder URL
folder_urltext - The Google Drive folder URL to upload the file to.
- File type
mime_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"
}