Skip to content

Google Drive

Google Drive is a cloud storage service by Google that enables users to store, sync, share files, and collaborate online.

Categories: file-storage

Type: googleDrive/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeControl TypeDescriptionRequired
clientIdClient IdSTRINGTEXTtrue
clientSecretClient SecretSTRINGTEXTtrue

Actions

Copy File

Name: copyFile

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

Properties

NameLabelTypeControl TypeDescriptionRequired
fileIdFile IDSTRINGSELECTThe id of the file to be copied.true
fileNameNew File NameSTRINGTEXTThe name of the new file created as a result of the copy operation.true
folderIdDestination Folder IDSTRINGSELECTThe ID of the folder where the copied file will be stored.true

Output

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
kindSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT

Create New Folder

Name: createNewFolder

Creates a new empty folder in Google Drive.

Properties

NameLabelTypeControl TypeDescriptionRequired
folderNameFolder NameSTRINGTEXTThe name of the new folder.true
folderIdParent Folder IDSTRINGSELECTID of the folder where the new folder will be created; if no folder is selected, the folder will be created in the root folder.false

Output

Sample Output:

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

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT

Create New Text File

Name: createNewTextFile

Creates a new text file in Google Drive.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileNameFile NameSTRINGTEXTThe name of the new text file.true
textTextSTRINGTEXT_AREAThe text content to add to file.true
mimeTypeFile TypeSTRINGSELECTSelect file type.true
folderIdParent Folder IDSTRINGSELECTID of the folder where the file should be created; if no folder is selected, the file will be created in the root folder.false

Output

Sample Output:

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

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT

Delete File

Name: deleteFile

Delete a selected file from Google Drive.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileIdFile IDSTRINGSELECTThe id of a file to delete.true

Download File

Name: downloadFile

Download selected file from Google Drive.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileIdFile IDSTRINGSELECTID of the file to download.true

Output

Type: FILE_ENTRY

Properties

NameTypeControl Type
extensionSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT
urlSTRINGTEXT

Get File

Name: getFile

Retrieve a specified file from your Google Drive.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileIdFile IDSTRINGSELECTID of the file to be retrieved.true

Output

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
kindSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT

Upload File

Name: uploadFile

Uploads a file in your Google Drive.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileEntryFileFILE_ENTRYFILE_ENTRYThe object property which contains a reference to the file to upload.true
folderIdParent Folder IDSTRINGSELECTID of the folder where the file will be uploaded; if no folder is selected, the file will be uploaded to the root folder.false

Output

Sample Output:

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

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT

Triggers

New File

Triggers when new file is uploaded to Google Drive.

Type: POLLING

Properties

NameLabelTypeControl TypeDescriptionRequired
folderIdParent FolderSTRINGSELECTtrue

Output

Type: ARRAY

Properties

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

New Folder

Triggers when new folder is uploaded to Google Drive.

Type: POLLING

Properties

NameLabelTypeControl TypeDescriptionRequired
folderIdParent FolderSTRINGSELECTtrue

Output

Type: ARRAY

Properties

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


Additional instructions


anl-c-google-drive-md

CONNECTION

Setting up OAuth2

Turning on Drive API