You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
When I get a Message object from my inbox that is an instance of EventMessage (and represents a meeting invitation), the EventMessage object I get when casting from Message has all null properties with the exception of the Subject property. In consequence, I cannot get the Event object after calling EventMessage.getEvent().
Upon further review, the message collection is retrieved with a select statement:
public List getMailMessages() throws ExecutionException, InterruptedException {
List messages = mOutlookClient
.getMe()
.getFolders()
.getById("Inbox")
.getMessages()
.select("Subject")
.orderBy("DateTimeReceived desc")
.top(EMAIL_PAGE_SIZE)
.read().get();
return messages;
Add "Event" to the select list and the event property is no longer null.
Upon further testing, removing the select clause from the getMessages() method call returns all of the message properties. However, for the EventMessage ODATA type, the Event property is still null.
@JohnAustin-MSFT but, what about the raw payload? Are you retrieving the actual Event? I would like to see what's the actual request you're executing and what's the raw payload. If the Event is part of the payload, then we may have a Deserialization problem.
Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I get a Message object from my inbox that is an instance of EventMessage (and represents a meeting invitation), the EventMessage object I get when casting from Message has all null properties with the exception of the Subject property. In consequence, I cannot get the Event object after calling EventMessage.getEvent().
The text was updated successfully, but these errors were encountered: