Connect to Google Drive

Connects to the Google Drive service.

Command availability: IBM RPA SaaS and IBM RPA on premises

Description

Connects to the Google Drive service to perform operations with the files stored there, returning a variable with the connection data that has been established.

Script syntax

IBM RPA's proprietary script language has a syntax similar to other programming languages. The script syntax defines the command's syntax in the script file. You can work with this syntax in IBM RPA Studio's Script mode.

googleDriveConnect --name(String) (FileSystem)=value

Dependencies

You must first configure a storage provider in Storage Providers.

Input parameters

The following table displays the list of input parameters available in this command. In the table, you can see the parameter name when working in IBM RPA Studio's Script mode and its Designer mode equivalent label.

Designer mode label Script mode name Required Accepted variable types Description
Name name Required Text Name of account that has been registered in the Storage Provider.

Output parameters

Designer mode label Script mode name Accepted variable types Description
Connection value File System Data from the Google Drive connection that was established.

Example

This example connects to Google Drive and gets the files from the connection.

defVar --name drive --type FileSystem
defVar --name files --type List --innertype String
googleDriveConnect --name googleDrive drive=value
getFiles --path "/" --recursive  --fileSystem ${drive} files=value
logMessage --message "${files}" --type "Info"