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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Zack92
Helper III
Helper III

Help with Pulling Consultant Calendars into Power BI via MS Exchange or Outlook Help with PullingAPI

Hey everyone,

I'm working on setting up a centralized calendar with all my consultants. As the first step, each consultant gave me access to their calendar with "View all details" permission. Then, I added them to my calendar. When I click on their names, I can see their schedules and events. 
People with their Calendars
Untitled.png

Now, I'm trying to pull all the consultants' calendar events into Power BI using my MS Exchange Connector. I signed in, but I’m not seeing any of the consultants' calendars. Can anyone explain why this is happening? They’re all on my calendar now.

This is what I see when I connect 

Zack92_0-1731202860672.png

Import Calendar data, I don't see any Consultant info
Screenshot 2024-11-09 183846.png

How can I get all those calendars into Power BI? If we can't access the data through the MS Exchange connection in Power BI, could we use the Outlook API to get the data? Does that work or are there any hidden settings? I am not an expert please advise me.

 

Thank you so much 

 

2 ACCEPTED SOLUTIONS
tharunkumarRTK
Super User
Super User

@Zack92 

I think you should consider using Outlook graph API, 

GET https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events

 

I would suggest you create a service principal and grant the necessary permissions to it and then run the above API from Power BI, You can generate the bearer token for the service principal and then pass it as a header to the graph API. 

 

Considering you want to retrive the calendar information of muliptle users, I would suggest you to create a M function and loop the function over the list of users. 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

View solution in original post

v-xiaocliu-msft
Community Support
Community Support

Hi @Zack92 ,

 

Here is the method how to call the graph api in power query.

https://community.fabric.microsoft.com/t5/Desktop/Getting-SharePoint-activity-report-into-Power-Bi/m...

You just need to make some changes to the code.

1\ Use the API to get the calendars and the API to get the events to replace the API in the code

2\ Add more delegated permissions to application registered in entra id.

vxiaocliumsft_0-1731291378188.png

 

vxiaocliumsft_1-1731291378362.png

 

 

Best Regards,

Wearsky

View solution in original post

3 REPLIES 3
v-xiaocliu-msft
Community Support
Community Support

Hi @Zack92 ,

 

Here is the method how to call the graph api in power query.

https://community.fabric.microsoft.com/t5/Desktop/Getting-SharePoint-activity-report-into-Power-Bi/m...

You just need to make some changes to the code.

1\ Use the API to get the calendars and the API to get the events to replace the API in the code

2\ Add more delegated permissions to application registered in entra id.

vxiaocliumsft_0-1731291378188.png

 

vxiaocliumsft_1-1731291378362.png

 

 

Best Regards,

Wearsky

tharunkumarRTK
Super User
Super User

@Zack92 

I think you should consider using Outlook graph API, 

GET https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events

 

I would suggest you create a service principal and grant the necessary permissions to it and then run the above API from Power BI, You can generate the bearer token for the service principal and then pass it as a header to the graph API. 

 

Considering you want to retrive the calendar information of muliptle users, I would suggest you to create a M function and loop the function over the list of users. 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

@tharunkumarRTK Thank you for the response, Yes I have multiple users (around 40 users), and I will contact you about work I would like to do a consultation with screen share so I can get an idea. I will call you on Monday. Thank you

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.