question

JuliusPataky-4412 avatar image
0 Votes"
JuliusPataky-4412 asked Prasad-MSFT edited

Is there a way how to get count of interactions from Teams channel?

Hi, we would like to create a channel in Teams, and from this specific channel, we would like to get a number of total or per comment interactions. These numbers we would like to forward to our Database outside of the Microsoft ecosystem - so there will be our API endpoints which we would like to trigger.

Thanks

office-teams-windows-itprooffice-teams-app-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JuliusPataky-4412,

we would like to get a number of total or per comment interactions.

With the built-in features available in Teams, I am afraid this is not feasible. Then noticed that your requirement involves triggering API endpoints, I’ll add the “office-teams-app-dev” tag so that their community members can help look into it as well.

0 Votes 0 ·

1 Answer

Prasad-MSFT avatar image
0 Votes"
Prasad-MSFT answered Prasad-MSFT edited

To retrieve the list of messages (without the replies) in a channel of a team using below API:
https://docs.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-1.0&tabs=http
In "@odata.count" property we can get count of those messages
To get the replies for a message, we need to call the list message replies or the get message reply API.


Thanks,

Prasad Das



If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.