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
Tacllem
New Member

Use Power BI to query all mailboxes.

Hello and good day to you all.

I am starting out with Power Bi and need a way to report on all mailboxes over my Office 365 exchange server.  The task is to produce reports for the sales department of how many emails sent and received and then how many different domains were sent to.
So far all I can get Power BI to connect to I s a single mailbox when I enter my address.
I am the domain system administrator and have full rights.

 

Thanks.

5 REPLIES 5
ChrisAtMAF
Frequent Visitor

A lot of Exchange Admin Center data including a list of mailboxes can be imported via the new REST API by just adding the following to Power Query / Power BI as an OData Feed:

https://outlook.office.com/adminApi/beta/[Azure Active Directory Tenant ID]/

(Where [Azure Active Directory Tenant ID] is in XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX format and found via https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-te...)

There is a 'Mailbox' table that worked for my purposes. NB this is marked as 'beta' so be warned about relying on this long-term.

Anonymous
Not applicable

Hi.

When importing the Mailbox table I see this error.

In the image below we can better see the errors in the lines

The tables are not populated with data from my Exchange, Can you help me?

 

erro1.png

 

 

 

 

 

 

 

 

erro2.png

 

Hi @Anonymous ,

I also found that a lot of the API returned Errors - but some data is available (scroll right).

It sounds like you might need email usage reports though. To get those, you might need the 'Creating a Power Query for report data in Excel' section of 

https://minkus.medium.com/easily-connecting-between-power-query-power-bi-and-microsoft-graph-72333eb95a35

combined with

https://docs.microsoft.com/en-us/graph/api/reportroot-getemailactivityuserdetail?view=graph-rest-1.0

and https://docs.microsoft.com/en-us/graph/api/reportroot-getemailactivitycounts?view=graph-rest-1.0

Hope this helps,

Chris

That's for the try but I need to list "ALL MAILBOXES"  not just mine.

Additionally (I know you did not design the system) but requiring excel as a middle step I kind of silly. I will stick with Crystal reports if that's the case.

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.