Hi,
We're trying to expand the event inside the event message object.
public CompletableFuture getMessage(String messageId) {
return graphServiceClient.me().messages(messageId).buildRequest().expand("attachments,event")
.getAsync();
}
com.microsoft.graph.http.GraphServiceException: Error code: BadRequest
Error message: Parsing OData Select and Expand failed: Could not find a property named 'event' on type 'microsoft.graph.message'.
GET https://graph.microsoft.com/v1.0/me/messages/AAMkAGJjOTdmZGFmLTVjYjktNDZhZC1hMjU0LTk0OTQ0ZDE5MjY3ZQBGAAAAAACjyVcVe_ZERZtXKM8-wcXTBwDlr2q8Y2sNSaiuWjH0AHseAAAAAAEMAADJ3SrU4jxUQZvT7eOl33ZTAAFmghDsAAA=?%24expand=attachments%2Cevent
SdkVersion : graph-java/v5.8.0
400 : Bad Request
Please find the response below:

As you can see, the event message is present on the response but the error we're getting from the response is that isn't possible get the property by expanding it.
- Expected behavior: Get the property event full filled
- Actual behavior. It's giving a Bad request error
- Steps to reproduce:
- Get an event message e-mail
- Open the e-mail, and use the expand method to get the event
Hi,
We're trying to expand the event inside the event message object.
public CompletableFuture getMessage(String messageId) {
return graphServiceClient.me().messages(messageId).buildRequest().expand("attachments,event")
.getAsync();
}
com.microsoft.graph.http.GraphServiceException: Error code: BadRequest
Error message: Parsing OData Select and Expand failed: Could not find a property named 'event' on type 'microsoft.graph.message'.
GET https://graph.microsoft.com/v1.0/me/messages/AAMkAGJjOTdmZGFmLTVjYjktNDZhZC1hMjU0LTk0OTQ0ZDE5MjY3ZQBGAAAAAACjyVcVe_ZERZtXKM8-wcXTBwDlr2q8Y2sNSaiuWjH0AHseAAAAAAEMAADJ3SrU4jxUQZvT7eOl33ZTAAFmghDsAAA=?%24expand=attachments%2Cevent
SdkVersion : graph-java/v5.8.0
400 : Bad Request
Please find the response below:
As you can see, the event message is present on the response but the error we're getting from the response is that isn't possible get the property by expanding it.