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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Get data from teams using microsoft graph api

Hi everyone

I need create a report with data from microsoft teams.
Basically I need to get these data from team. 

I know it is possible to get data from teams using  microsoft graph api.

  • ReplyMessages
  • PostMessages
  • ChatMessages
  • UrgentMessages
  • MeetingsOrganizedScheduledOneTime
  • MeetingsOrganizedScheduledRecurring
  • TotalMeetingsOrganized
  • MeetingsParticipatedScheduledOneTime
  • MeetingsParticipatedScheduledRecurring
  • MeetingsParticipatedAdhoc
  • TotalMeetingsParticipated
  • 1:1 Calls
  • AudioTime (Minutes)
  • VideoTime (Minutes)
  • ScreenShareTime (Minutes)


Is there someone that already the same and it can help me to do that?

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Here is the overview of Microsoft Graph API which work with Microsoft Teams. You can find all API Teams support in it. For reference: Use the Microsoft Graph API to work with Microsoft Teams

For example we get List replies in Power BI.

Before you call API you need to make sure you have the permission to the rest api. Each API has its requirement, you can find the permission requirements in Blogs. Now List replies API need one of the following permission to call it.  You may refer to this blog about how to assign permissions: Microsoft Graph permissions reference

1.png

Then you can connect to API by OData Feed connector in Power BI Desktop.

GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies

To connect to this API, you need to put parameters: team-id, channel-id, message-id into this url.

For reference:  How to get Microsoft Graph API Data on Microsoft Power BI

Get data from Microsoft teams (shifts)

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

Here is the overview of Microsoft Graph API which work with Microsoft Teams. You can find all API Teams support in it. For reference: Use the Microsoft Graph API to work with Microsoft Teams

For example we get List replies in Power BI.

Before you call API you need to make sure you have the permission to the rest api. Each API has its requirement, you can find the permission requirements in Blogs. Now List replies API need one of the following permission to call it.  You may refer to this blog about how to assign permissions: Microsoft Graph permissions reference

1.png

Then you can connect to API by OData Feed connector in Power BI Desktop.

GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies

To connect to this API, you need to put parameters: team-id, channel-id, message-id into this url.

For reference:  How to get Microsoft Graph API Data on Microsoft Power BI

Get data from Microsoft teams (shifts)

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.