Skip to main content
May 24, 2022
Question

How to delete a Document from Sharepoint or move a document from one folder to another

  • May 24, 2022
  • 2 replies
  • 0 views

Hi All,

I have setup the integration object using https://docs.appian.com/suite/help/21.2/sharepoint-connected-system.html

All the methods I can use and its all working fine but I have a requirement that I must be able to move a document from one folder to another or delete a specific document from one folder. 

I got one method to use Execute Write Request but can someone help in what data we need to pass in that to fulfil the requirement?

Thanks 

2 replies

kervinchristopherb3139
May 29, 2024

Hi [mention:7e77a4a746fd4d80b86f280dc197512d:e9ed411860ed4f2ba0265705b8793d05] have you found a way to solve this?

kervinchristopherb3139
May 29, 2024

Hi everyone! I just want to share a solution in case you encounter a scenario where you need to move a file in SharePoint to another folder.

I solved this using the relative path value below:

"_api/web/GetFileByServerRelativeUrl('%2F[Folder Name]%2F[Folder Name]%2FSample%20Source%20Folder%2F/SampleFile.txt')/MoveTo(newurl=''%2F[Folder Name]%2F[Folder Name]%2FSample%20Destination%20Folder%2F/SampleFile.txt')"

I have folder paths like Folder1/New Folder/Sample Source Folder for the source and Folder2/New Folder/Sample Destination Folder for the destination.