cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jcoolsen
Advocate I
Advocate I

Handle restore from recycle bin in SharePoint

Hello.

 

I'm looking for a SharePoint trigger that will react when a file is restored from the recycle bin. I would have expected the trigger "When a file is created or modified (properties only)" to handle this scenario, but as it turns out, it does not.

 

Perhaps it can be considered a bug or at least a missing feature.

But maybe I'm overlooking something obvious. Can someone help?

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions

Hey Mate, I think it would not be possible.

 

My idea was to force users to use Flow if they want to restore the files that what you can detect (but this also becomes extremely tricky).

 

That being said you can submit an idea and Microsoft might consider it in future - https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

 

I am sorry I do not have a better answer.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

5 REPLIES 5
CFernandes
Super User
Super User

Hey Mate @Jcoolsen ,

 

Please have a look at https://poszytek.eu/en/microsoft-en/office-365-en/powerautomate-en/restore-removed-files-in-sharepoi... 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thank you @CFernandes but that is not exactly what I'm looking for. The article answers the question on how to handle the situation when a file is deleted (moved to the recycle bin), which is certainly good to know. But what I'm looking for is how to detect when a file is restored from the recycle bin, i.e. recreated in a document library.

Hey Mate, I think it would not be possible.

 

My idea was to force users to use Flow if they want to restore the files that what you can detect (but this also becomes extremely tricky).

 

That being said you can submit an idea and Microsoft might consider it in future - https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

 

I am sorry I do not have a better answer.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Jcoolsen
Advocate I
Advocate I

@CFernandes thank you. I appreciate the effort. Yes, I will certainly record an idea.
Would you not think that the existing trigger for files Created and Modified ought to handle this case?

Edit: Idea created here: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/The-SharePoint-trigger-quot-When-a-file-is-...

@Jcoolsen I have upvoted the idea. 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,132)