i want to generate an automatic report

Copper Contributor

I'm wanting to generate the shared documents report you can do in SharePoint automatically once a week and have it emailed to me i have no problems going in and clicking the icon however id rather be able to send this to 

Torishai1775_0-1704949517010.png

 

2 Replies
Unfortunately, Microsoft does not expose any API to trigger said report. The alternative is to create your own version based on CSOM or the Graph API. I have a sample script here:

https://github.com/michevnew/PowerShell/blob/master/Graph_ODFB_shared_files.ps1
(help file) https://github.com/michevnew/PowerShell/blob/master/Graph_ODFB_shared_files.md

@Vasil Michev 

Thank you so much im trying to give that a go however i am useless when it comes to powershell so im trying to fix an error im getting but i will update you on if its all i need :)