Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ScottBrown
Helper I
Helper I

Use SharePoint Recycle Bin as a Data Source

In lieu of the Teams File Deletion problem on or around 03/15/21 after the Teams outage issue, we had a lot of files get deleted by a rogue process with the outage.  We were able to recover them via the Recycle Bin.

 

I want to create a watch dog report of the file deletions and by whom so we can review and triage if necessary.

  • I have tried a SP folder & List connection and it is not there. 
  • I have tried an OData connection and cannot see it there.

Any suggestions are welcome!

 
3 REPLIES 3
Icey
Community Support
Community Support

Hi @ScottBrown ,

 

How about creating a flow to monitor if anything has been deleted?

delete.JPG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

edhans
Super User
Super User

I don't think you can do this directly in Power Query. Even using SharePoint.Contents() I cannot find the recycle bin. I see at least two options:

  1. Every week I export the Audit Logs for the tenant to a CSV file. It has file deletion data by person. I have a report that shows all deletions across all SharePoint sites in the tenant. Then someone can view that and see if anything looks odd or suspicious.
  2. You can use PowerShell to export recycle bin contents for a specific site - Get-PnPRecycleBinItem (PnP.Powershell) | Microsoft Docs - that output could be dropped into a folder and a report run over that.


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Additionally @ScottBrown you can set up alerts in Office 365 for unusual levels of file deletions. See this page for configuration and licensing requirements. Alert policies in the security and compliance centers - Microsoft 365 Compliance | Microsoft Docs



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors