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
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:
{mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, name=new-file.txt}
Type: OBJECT
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
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 |
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:
{mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, name=new-file.txt}
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:
{mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, name=new-file.txt}
Type: OBJECT
Properties
Type | Control Type |
---|---|
STRING | TEXT |
STRING | TEXT |
STRING | TEXT |
Additional instructions
CONNECTION
Turning on Drive API