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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.