RPASharePoint
Send a file to a drive
Send a file to a drive
Uploads a local file to a SharePoint drive.
Options
Drive
Select the action that gets the SharePoint drive: Get a drive from the list or Get drive by name.
Path in the drive where the file will be sent
Enter the destination path in the drive, including the file name and extension, from the root of the drive, for example Documents/report.pdf.
Local file path
Enter the full path of the local file to upload, for example C:\files\report.pdf.
Returns
Javascript code
js
actions["action-id"].success // indicates if the file was uploaded successfully (Boolean)
actions["action-id"].uploadedItem // the uploaded item (Any)
Field selection
- success — indicates if the file was uploaded successfully (Boolean)
- uploadedItem — the uploaded item (Any)
Rules and Conditions
- The Drive, Path in the drive where the file will be sent and Local file path fields are required.
- The local file must exist and be accessible by the robot.
uploadedItemhas theid,name,size,webUrl,createdDateTime,lastModifiedDateTime,createdBy,lastModifiedBy,parentandfile.mimeTypeof the uploaded file.- If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.