Connect to Microsoft OneDrive
Connects to the OneDrive service.
Command availability: IBM RPA SaaS and IBM RPA on premises
Description
Connects to the OneDrive service to perform operations with the files stored on it, returning as a variable the connection that was 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.
oneDriveConnect --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 |
Account name registered in the Storage Provider. |
Output parameters
Designer mode label | Script mode name | Accepted variable types | Description |
---|---|---|---|
Connection | value | File System |
Data from connection established with OneDrive. |
Example
This example connects to OneDrive and gets the files from the connection.
defVar --name drive --type FileSystem
defVar --name files --type List --innertype String
oneDriveConnect --name oneDrive drive=value
getFiles --path "/" --recursive --fileSystem ${drive} files=value
logMessage --message "${files}" --type "Info"