cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fatimah_33
Helper I
Helper I

create approval flow to delete a file from SharePoint library

l want to create an approval flow to reject or approve a deleting file from SharePoint. When someone deletes a file from a library before it moves to the recycle bin it should go into an approval flow. So the file will be in pending to be deleted status after approval it will then move to the recycle bin. 

 

I have tried to do this scenario but it did not work, see the image attached.   Capture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Fatimah_33, everything that we have within our flow is usually reactive to something happening. We have a trigger which is "When a file is deleted" however this is reactive to the deletion being successful. We don't have the ability to intercept the out-of-the-box delete command and then choose whether to override it or not.

 

What could be an option, is that a metadata field is created on the file which is "Mark for deletion" which can then trigger a disposition workflow. You would potentially need to limit the users ability to delete by removing their delete right, but just keep in mind that this also limits the ability for the user to rename or move a file.

 

I hope that helps

View solution in original post

1 REPLY 1

Hi @Fatimah_33, everything that we have within our flow is usually reactive to something happening. We have a trigger which is "When a file is deleted" however this is reactive to the deletion being successful. We don't have the ability to intercept the out-of-the-box delete command and then choose whether to override it or not.

 

What could be an option, is that a metadata field is created on the file which is "Mark for deletion" which can then trigger a disposition workflow. You would potentially need to limit the users ability to delete by removing their delete right, but just keep in mind that this also limits the ability for the user to rename or move a file.

 

I hope that helps

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,122)