Google Drive
Reference
Google Drive is a cloud storage service by Google that enables users to store, sync, share files, and collaborate online.
Categories: [file-storage]
Version: 1
Connections
Version: 1
OAuth2 Authorization Code
Properties
Name | Type | Control Type | Description |
---|---|---|---|
Client Id | STRING | TEXT | |
Client Secret | STRING | TEXT |
Triggers
New File
Triggers when new file is uploaded to Google Drive.
Type: POLLING
Properties
Name | Type | Control Type | Description |
---|---|---|---|
Parent Folder | STRING | SELECT |
Output
Type: ARRAY
Properties
Type | Control Type |
---|---|
{STRING(id), STRING(mimeType), STRING(name)} | OBJECT_BUILDER |
New Folder
Triggers when new file is uploaded to Google Drive.
Type: POLLING
Properties
Name | Type | Control Type | Description |
---|---|---|---|
Parent Folder | STRING | SELECT |
Output
Type: ARRAY
Properties
Type | Control Type |
---|---|
{STRING(id), STRING(mimeType), STRING(name)} | OBJECT_BUILDER |
Actions
Copy File
Copy a selected file to a different location within Google Drive.
Properties
Name | Type | Control Type | Description |
---|---|---|---|
File | STRING | SELECT | The id of the file to be copied. |
New File Name | STRING | TEXT | The name of the new file created as a result of the copy operation. |
Destination Folder | STRING | SELECT | The ID of the folder where the copied file will be stored. |
Output
Type: OBJECT
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
Create New Folder
Creates a new empty folder in Google Drive.
Properties
Name | Type | Control Type | Description |
---|---|---|---|
Folder Name | STRING | TEXT | The name of the new folder. |
Parent Folder | STRING | SELECT | Folder where the new folder will be created; if no folder is selected, the folder will be created in the root folder. |
Output
Sample Output:
{name=new-file.txt, mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr}
Type: OBJECT
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
Create New Text File
Creates a new text file in Google Drive.
Properties
Name | Type | Control Type | Description |
---|---|---|---|
File Name | STRING | TEXT | The name of the new text file. |
Text | STRING | TEXT_AREA | The text content to add to file. |
File Type | STRING | SELECT | Select file type. |
Parent Folder | STRING | SELECT | Folder where the file should be created; if no folder is selected, the file will be created in the root folder. |
Output
Sample Output:
{name=new-file.txt, mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr}
Type: OBJECT
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
Delete File
Delete a selected file from Google Drive.
Properties
Name | Type | Control Type | Description |
---|---|---|---|
File | STRING | SELECT | The id of a file to delete. |
Read File
Read a selected file from Google Drive file.
Properties
Name | Type | Control Type | Description |
---|---|---|---|
File | STRING | SELECT | The id of a file to read. |
Output
Type: FILE_ENTRY
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
Upload File
Uploads a file in your Google Drive.
Properties
Name | Type | Control Type | Description |
---|---|---|---|
File | FILE_ENTRY | FILE_ENTRY | The object property which contains a reference to the file to upload. |
Parent Folder | STRING | SELECT | Folder where the file will be uploaded; if no folder is selected, the file will be uploaded to the root folder. |
Output
Sample Output:
{name=new-file.txt, mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr}
Type: OBJECT
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
Additional instructions
CONNECTION
Turning on Drive API