Cannot $select and $filter messages by the event fields

Mark Babayev 226 Reputation points
2020-07-24T08:46:54.21+00:00

I cannot $select and $filter messages by the event fields as described in this issue:
https://github.com/microsoftgraph/microsoft-graph-docs/issues/2018

For example, when I'm getting the message the "location" field exists there:

https://graph.microsoft.com/v1.0/users/xxx/messages/xxx

But when I'm getting the same message with select it shows an error:

https://graph.microsoft.com/v1.0/users/xxx/messages/xxx?$select=location

The same is when I'm querying the messages:

https://graph.microsoft.com/v1.0/users/xxx/messages?$filter=meetingMessageType eq 'meetingRequest'

This is the error:

{
  "error": {
    "code": "RequestBroker--ParseUri",
    "message": "Could not find a property named 'location' on type 'Microsoft.OutlookServices.Message'.",
    "innerError": {
      "date": "2020-07-24T08:28:02",
      "request-id": "f0e50e88-e69a-4ab3-bf78-4b3e933ad01f"
    }
  }
}
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,616 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-07-24T10:08:17.567+00:00

    @Mark Babayev , Thank you for reaching out. You can only mention the properties that are listed here, under the select query parameter. Since "location" and "meetingMessageType" properties is not present in that list hence the select query fails with that error.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.

    0 comments No comments

  2. Mark Babayev 226 Reputation points
    2020-07-25T17:17:04.227+00:00

    Yes, I see, but it looks like a real bug because existing fields cannot be selected.