February 6, 2023, 11:30am
I’m trying to upload a file to Sharepoint but I’m getting this error:
This is my process and the Properties on the Microsoft Office 365 Scope (I’ve removed my username and part of the attachmentName variable but they are complete)
And these are the Properties for the Find Files And Folders activity:
Can someone please advise what I’m missing?
February 6, 2023, 11:33am
You need to provide the drive name and Site url
Drive name is the document library name you see in the sharepoint, URL is your sp url
and also if the Upload tests is inside any folder please provide the relative path to it in subfolder
Relative path should start after drive name and go till end
say when you open upload test folder in ui
you see Documents → folder1 → folder2 → Upload Tests
then relative path is
February 7, 2023, 10:17am
Ahh thanks, so does the URL go into Site URL and the relative path goes into Subfolder? Or does it all go into the Site URL part?
February 7, 2023, 11:00am
Url goes into site url…and sub folder will take the relative path…and drive name will be ypur document library name, which you can get from site contents or from admin…
Generally they are documents or shared documents …but can be different as well if multiple libraries are present
February 7, 2023, 11:59am
So like this?
Then I’m not sure what you mean by document library name sorry? Is it somewhere in what I’ve uploaded above?
February 7, 2023, 12:08pm
Above sharepoint url …there is drive name right…that drive name needs to be filled…
When you open your sharepoint manually the left side panel will show which document library you are on
Documente is the drive name or the document library name from the image
Hope this helps
February 7, 2023, 5:21pm
Find Files and Folders activity is used to find the file in a given list. I hope that activity is not required for uploading the file.
in the upload file activity, “File to upload” attribute should be the local path of the file on your machine.
if your folder structure in sharepoint is Documents → Folder1 → Folder2 → Upload Tests
Destination folder → Shared Documents/Folder1/Folder2/Upload Tests
February 7, 2023, 8:53pm
Just to correct…find files is still needed as for folder upload file needs a drive item….
And the relative path would not contain drive name …it is a separate field
The purpose of this guide is to help you create a working sample that uses different Microsoft Office 365 activities, including the Create Folder, Upload File, Get Item Info, and Send Mail activities. Prerequisites Before you begin: Complete the...
February 8, 2023, 4:36am
Thanks for correction