Read only the mention messages from MS Teams Using Ms Graph API

harshada p 1 Reputation point
2021-07-23T06:37:21.757+00:00

I am looking for the API to get only the mention messages from MS Teams using Graph API. Using the following API, I was able to get all the messages including mention messages too. But I don't want other messages except mentions.

API: - GET /teams/{team-id}/channels/{channel-id}/messages

How can we add the filter in the given API to get only mention messages? or Is there any API to get only mention messages from MS Teams?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,843 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points
    2021-07-26T10:20:56.36+00:00

    Hello @harshada p Thank you for your question. From the List channel messages documentation, the only Odata query parameter currently supported is $top - there isn't yet a way to get only the mention messages using Graph API. You can filter the data on your end once the response is received. Would you also consider filing a feature request on the M365 developer platform so we can look into this?

    Let me know if this helps and if you have further questions,

    Diana.

    0 comments No comments