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

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:

{mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, name=new-file.txt}

Type: OBJECT

Properties

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT

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

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:

{mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, name=new-file.txt}

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:

{mimeType=plain/text, id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, name=new-file.txt}

Type: OBJECT

Properties

TypeControl Type
STRINGTEXT
STRINGTEXT
STRINGTEXT

Additional instructions


anl-c-google-drive-md

CONNECTION

Setting up OAuth2

Turning on Drive API