Skip to content

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

NameTypeControl TypeDescription
Client IdSTRINGTEXT
Client SecretSTRINGTEXT

Triggers

New File

Triggers when new file is uploaded to Google Drive.

Type: POLLING

Properties

NameTypeControl TypeDescription
Parent FolderSTRINGSELECT

Output

Type: ARRAY

Properties

TypeControl Type
{STRING(id), STRING(mimeType), STRING(name)}OBJECT_BUILDER

New Folder

Triggers when new file is uploaded to Google Drive.

Type: POLLING

Properties

NameTypeControl TypeDescription
Parent FolderSTRINGSELECT

Output

Type: ARRAY

Properties

TypeControl Type
{STRING(id), STRING(mimeType), STRING(name)}OBJECT_BUILDER

Actions

Copy File

Copy a selected file to a different location within Google Drive.

Properties

NameTypeControl TypeDescription
FileSTRINGSELECTThe id of the file to be copied.
New File NameSTRINGTEXTThe name of the new file created as a result of the copy operation.
Destination FolderSTRINGSELECTThe ID of the folder where the copied file will be stored.

Output

Type: OBJECT

Properties

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT
STRINGTEXT

Create New Folder

Creates a new empty folder in Google Drive.

Properties

NameTypeControl TypeDescription
Folder NameSTRINGTEXTThe name of the new folder.
Parent FolderSTRINGSELECTFolder 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

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT

Create New Text File

Creates a new text file in Google Drive.

Properties

NameTypeControl TypeDescription
File NameSTRINGTEXTThe name of the new text file.
TextSTRINGTEXT_AREAThe text content to add to file.
File TypeSTRINGSELECTSelect file type.
Parent FolderSTRINGSELECTFolder 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

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT

Delete File

Delete a selected file from Google Drive.

Properties

NameTypeControl TypeDescription
FileSTRINGSELECTThe id of a file to delete.

Read File

Read a selected file from Google Drive file.

Properties

NameTypeControl TypeDescription
FileSTRINGSELECTThe id of a file to read.

Output

Type: FILE_ENTRY

Properties

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT
STRINGTEXT

Upload File

Uploads a file in your Google Drive.

Properties

NameTypeControl TypeDescription
FileFILE_ENTRYFILE_ENTRYThe object property which contains a reference to the file to upload.
Parent FolderSTRINGSELECTFolder 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

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT

Additional instructions


anl-c-google-drive-md

CONNECTION

Setting up OAuth2

Turning on Drive API