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

Certified Lead Developer

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 

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to kervinb

    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.

Children
No Data