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 for the first ever Power Platform Online Conference!
Keep your eyes open for our upcoming T-shirt design contest!
Look out for new contribution recognition badges coming SOON!
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!
Find out where you can attend!