Forum Discussion
Torishai1775
Jan 10, 2024Copper Contributor
i want to generate an automatic report
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...
VasilMichev
Jan 10, 2024MVP
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
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
Torishai1775
Jan 15, 2024Copper Contributor
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 🙂