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.
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!