Forum Discussion
I-Use-a-PC
Apr 29, 2022Copper Contributor
Monthly number of sent and received emails in 250 'shared mailboxes'
Hi guys. We use Exchange Online - as the title says; I need to get the email count - sent and received, for a specific list of shared mailboxes around 250, the list is available in a csv file or spre...
VasilMichev
Apr 29, 2022MVP
Good luck with that 🙂
None of the built-in tools (reports, message trace, reporting web service, etc) goes back that far, so you're indeed left with mining mailbox content. I'd strongly suggest you consider using an EWS or Graph API-based approach instead of Content searches, it will be much faster. There are readily available script samples to get the number of items within specific folders/over specific timeframe, find the one that best suits your needs and work with it.
None of the built-in tools (reports, message trace, reporting web service, etc) goes back that far, so you're indeed left with mining mailbox content. I'd strongly suggest you consider using an EWS or Graph API-based approach instead of Content searches, it will be much faster. There are readily available script samples to get the number of items within specific folders/over specific timeframe, find the one that best suits your needs and work with it.