question

harshadap-0168 avatar image
0 Votes"
harshadap-0168 asked DianaWanjuhi-1579 answered

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

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?

microsoft-graph-notifications
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.

1 Answer

DianaWanjuhi-1579 avatar image
0 Votes"
DianaWanjuhi-1579 answered

Hello @harshadap-0168 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.


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.