Hi,
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.
Any ideas?
Regards,
Paul
Solved! Go to Solution.
Mmmm... as you said, some posts point out that unless you get file identifier from your trigger, you would probably get a JSON error.
THis second post explains how to do it via HTTP request via REST to delete it
Please note I haven't tested it myself
Hope this helps
Proud to be a Flownaut!
I guess you need the file identifier. See for example this post
Hope this helps
Proud to be a Flownaut!
Thanks, but I've tried file identifier too.
Mmmm... as you said, some posts point out that unless you get file identifier from your trigger, you would probably get a JSON error.
THis second post explains how to do it via HTTP request via REST to delete it
Please note I haven't tested it myself
Hope this helps
Proud to be a Flownaut!
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.
Thanks for sharing, @BrisM900 !
Proud to be a Flownaut!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
70 | |
24 | |
18 | |
16 | |
13 |
User | Count |
---|---|
137 | |
44 | |
32 | |
32 | |
29 |