Use the Microsoft 365 OneDrive package to upload, download, copy, move, rename, and delete files and folders in Microsoft OneDrive, find files, check permissions, and export files as PDF.
How to use the actions in the Microsoft 365 OneDrive package
Use the actions in the OneDrive
package in this order:
- Use the Connect
action to establish a connection to the Microsoft 365 server.
See Using Connect action in Microsoft 365 OneDrive package.Note: Multi-factor authentication (MFA) or single sign-on (SSO) are not currently supported.
- Use the actions in this package to
automate your tasks.Note: To use actions from other Microsoft 365 packages, establish a connection by using the Connect action from that package.
- Use the Disconnect action to terminate the connection.
For an example of how to set up and connect to the Microsoft 365 OneDrive package, see Setup Azure App to connect using Microsoft OneDrive package (A-People login required).
Important: Microsoft has deprecated EWS
API for Exchange Online and recommends that users move to Graph API. Starting from Automation 360 v.29, Office 365 OneDrive package is called
Microsoft 365 OneDrive
package. Although the package name has changed, the
functionality remains the same. So your existing bots from previous
releases will continue to work as expected after an update to Automation 360 v.29.
Actions in the Microsoft 365 OneDrive package
Use the actions in the Microsoft 365 OneDrive
package to perform an operation on a single file or folder. To perform
the operation on every file in a folder, use the action in a loop. See
Using the One Drive actions in a loop.
Note: Automation 360 supports shared drives. To use an item from a shared
drive, provide the link and name of the file or folder.
The Microsoft 365 OneDrive package includes the following actions:
| Action | Description |
|---|---|
| Assign file | References a specific file from a Microsoft 365 OneDrive location and assigns it to a variable for real-time processing. See Assign file action. |
| Check permission | Checks permission for a file or folder in Microsoft 365 OneDrive. See Check permission action. |
| Connect | Establishes a connection with the Microsoft 365 server using your organization's client ID and tenant ID, and user credentials. |
| Copy file or folder | Copies a file or folder from one folder to another in Microsoft 365 OneDrive. See Copy file or folder action. |
| Create folder | Creates a folder in a specific directory in Microsoft 365 OneDrive. See Create folder action. |
| Delete file or folder | Deletes a file or folder in a specific directory in Microsoft 365 OneDrive. See Delete file or folder action. |
| Disconnect | Terminates the connection with the Microsoft 365 server. See Using Disconnect action in Microsoft 365 Calendar package. |
| Download file | Downloads a file from a specific directory in Microsoft 365 OneDrive. See Download file action. |
| Export as PDF | Exports an existing file in Microsoft 365 OneDrive as a PDF. See Export to PDF action. |
| Find files and folders | Finds files and folders in a specific directory in Microsoft 365 OneDrive. See Find files and folders action. |
| Get file or folder information | Retrieves information for a specific file or folder from Microsoft 365 OneDrive. See Get file or folder information action. |
| Move file or folder | Moves a file or folder from one folder to another in Microsoft 365 OneDrive. See Move file or folder action in the Microsoft 365 OneDrive package. |
| Rename file or folder | Renames a file or folder in a specific directory in Microsoft 365 OneDrive. See Rename file or folder action. |
| Restore last version | Restores a file to its previous version. You lose the current version. See Restore last version action. |
| Upload file | Uploads a file to a specific directory. See Upload file action. |