Share via

Microsoft Teams API: Selecting relevant headers in several calls

2021-08-16T11:16:30.78+00:00

Hi,

I know some of the existing Microsoft API-s support the $select query, which allows me to, for example, select only the email and id fields of some resource, and disregards everything else.

I am in need of doing something similar for Microsoft Teams. More specifically, I'd like to select some headers when fetching team members, channel members, and channel messages. Some of these already support $select, but only partially.

For members, I'd like to fetch "id", "email", "displayName", and "userId". For messages, I'd like to fetch "id", "from", and "createdDateTime". It's especially important in the latter because I don't want to spend time getting message bodies.

I'd like to know if these $select values (or the query itself if it's not functional) will be support at all, and when if so.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.