Table of Contents

Connections

Commands

Connections

Google Drive

Connection to the Google Drive REST API

Inputs

None

Commands

Create folder

Creates a new folder in Google Drive

Inputs

Input

Type

Detail

Notes

Folder name

TextField

Name of the folder to be created

Parent folder

TextField

The full path to the parent folder in which the new folder will be created (optional). If left blank, the new folder will be created at the top level.

Outputs

Output

Output Type

Notes

Created Folder Id

String

Created Folder Name

String

Exit Codes

Code

Type

Detail

0

Success

Command completed successfully

1

Error

General failure

2

Error

Invalid arguments

3

Error

Multiple files found with given name

4

Error

Error deleting - requested object is a folder

10

Error

Error response from Google Drive API

16

Error

Could not create folder - a folder with this name already exists

Delete file

Deletes a file from Google Drive

Inputs

Input

Type

Detail

Notes

File name

TextField

Name of the file to be deleted

Parent Folder

TextField

The containing folder of the file to be deleted. Leave blank if the file is in the root folder.

Is Folder

BooleanField

Check this if deleting a folder

Outputs

None

Exit Codes

Code

Type

Detail

0

Success

Command completed successfully

1

Error

General failure

2

Error

Invalid arguments

3

Error

Multiple files found with given name

4

Error

Error deleting - requested object is a folder

10

Error

Error response from Google Drive API

Download file

Downloads a file from Google Drive

Inputs

Input

Type

Detail

Notes

File name

TextField

Name of the file to download from Google Drive

Folder name

TextField

The name of the parent folder from which you are downloading. If left blank, the command will search the entire drive for a file matching that name.

Download path

TextField

Path where the file will be stored. If using the file as an output, it may be left blank.

Overwrite

BooleanField

If selected, will download to the file system regardless of whether or not a file exists at the specified path

Outputs

Output

Output Type

Notes

File

File

File Size

Integer

Exit Codes

Code

Type

Detail

0

Success

Command completed successfully

1

Error

General failure

2

Error

Invalid arguments

3

Error

Multiple files found with given name

4

Error

Error deleting - requested object is a folder

10

Error

Error response from Google Drive API

16

Error

Could not write destination file because a file already exists with that name

Move file

Moves a file to a new folder in Google Drive

Inputs

Input

Type

Detail

Notes

Source file name

TextField

Name of the file in Google Drive to move

Source folder name

TextField

Optional: Name of the folder in which the source file exists. If left blank, the command will attempt to find the file in all folders

Destination folder name

TextField

Name of the folder to which the file will be moved

Overwrite

BooleanField

If selected, will move the file to the new folder even if a file already exists with that name

Is Folder?

BooleanField

Whether or not the item being moved is a folder

Outputs

Output

Output Type

Notes

Moved File Id

String

Moved File Name

String

Exit Codes

Code

Type

Detail

0

Success

Command completed successfully

1

Error

General failure

2

Error

Invalid arguments

3

Error

Multiple files found with given name

4

Error

Error deleting - requested object is a folder

10

Error

Error response from Google Drive API

16

Error

Could not write destination file because a file already exists with that name

Search files

Searches for files in Google Drive according to a specified query

Inputs

Input

Type

Detail

Notes

Query

TextField

Google Drive offers a query language for filtering results. See https://developers.google.com/drive/v3/web/search-parameters for usage.

Number of results

NumberField

Maximum number of results to display (max 100)

Order

DropdownField

The field on which the returned files will be sorted

Outputs

Output

Output Type

Notes

Files (Deprecated)

Json

Search Results

File

Exit Codes

Code

Type

Detail

0

Success

Command completed successfully

1

Error

General failure

2

Error

Invalid arguments

3

Error

Multiple files found with given name

10

Error

Error response from Google Drive API

Upload file

Uploads an existing file to Google Drive

Inputs

Input

Type

Detail

Notes

File

FileField

File to upload. Can either be an existing file on your file system, a command output, or a file resource

Folder name

TextField

Name of the folder to which the file will be uploaded on Google Drive (optional). If left blank, the file will be uploaded to the top level.

Upload name

TextField

Name of the uploaded file. If left blank, will default to the name of the file to be uploaded.

Overwrite

BooleanField

If selected, this will upload the file regardless of whether or not it already exists at the specified location

Outputs

Output

Output Type

Notes

Uploaded File name

String

Uploaded File Id

String

Exit Codes

Code

Type

Detail

0

Success

Command completed successfully

1

Error

General failure

2

Error

Invalid arguments

3

Error

Multiple files found with given name

4

Error

Error deleting - requested object is a folder

10

Error

Error response from Google Drive API

16

Error

Cannot overwrite - a file already exists with that name

Did this answer your question?