Skip to content

Expanding event inside an event message object #958

@davidedpribeiro

Description

@davidedpribeiro

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:

image

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:
  1. Get an event message e-mail
  2. Open the e-mail, and use the expand method to get the event

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions