3 weeks ago
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.
3 weeks ago
@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
3 weeks ago
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
3 weeks ago
@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?
3 weeks ago
@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
2 weeks ago
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.