14-05-24 10:10 AM
I am trying to delete an Excel file in a Sharepoint folder. But I get the following error message:
The IDs are correct because I can copy the file. In other words, the file is found. It’s probably because of the file path. For this I copied the link in Sharepoint. Is that right?
Answered! Go to Answer.
15-05-24 07:37 PM
@EasyBluePrism let assume I have a folder titled Test Folder under my root SharePoint Documents folder, and in that folder is a file called TestSpreadsheet.xlsx that I want to delete. We can envision the structure like this:
Documents
To delete that file, I would use the path Test Folder/TestSpreadsheet.xlsx. The reason is that, for this action, all files/folders are referenced relative to the root folder. You can see that if you take a look at the partial URL definition within the action.
Cheers,
Eric
14-05-24 03:44 PM
The path should be relative to the root SharePoint drive. Right now, Graph doesn't understand what you're sending it, so it's looking specifically within the root drive.
Cheers,
Eric
15-05-24 03:41 PM
@ewilson I tried two versions of the relative path (see screenshot), but in both cases I get an 404 error (ressource could not be found):
So, how the relative path has to look like?
15-05-24 07:37 PM
@EasyBluePrism let assume I have a folder titled Test Folder under my root SharePoint Documents folder, and in that folder is a file called TestSpreadsheet.xlsx that I want to delete. We can envision the structure like this:
Documents
To delete that file, I would use the path Test Folder/TestSpreadsheet.xlsx. The reason is that, for this action, all files/folders are referenced relative to the root folder. You can see that if you take a look at the partial URL definition within the action.
Cheers,
Eric
16-05-24 10:32 AM
Thank you very much. That solved my problem.
It would be a good idea to write in the help/description to this action that the path must be relative to the root folder.