I've seen some posts on this but I've not been able to get anything to work yet.
I have a Flow which runs through an approval process and after the final approval copies the file to a "frozen" library.
After that I want to delete the original file but it always fails with JSON error.
If I test by going into the Flow and manually selecting the file by folder then name it works, but if I obtain same "folder/file_name.extension" as dynamic content it fails, even though both are observationally the same.
I have also tried the HTTP REST DELETE method but can't get that to work either.
Solved! Go to Solution.
Thanks for jumping on this quickly @efialttes.
The reference to the HTTP helped, but I also needed this reference from Microsoft on working with files using REST api and adjusting the URL to reference ('/sites/site name/library name/file name.docx from dynamic content')/recycle as the example MS uses in their reference only uses ('/folder name/file name') which failed.
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.