I am using the Microsoft.Graph
nuget package (version 1.6.2) and I try to mark an email as read.
This is the code:
msg.IsRead = true;
await MainPage.GraphServiceClient.Me.Messages[msg.Id].Request().Select("IsRead").UpdateAsync(msg);
From my understanding, the above code should only send the IsRead
property to the server for update.
However, executing this, sends the whole message object (I have verified this with Fiddler) and you get this response:
{
"error": {
"code": "ErrorInvalidPropertyUpdateSentMessage",
"message": "Update operation is invalid for property of a sent message.",
"innerError": {
"request-id": "<A guid here that I wont share>",
"date": "2017-07-29T21:10:18"
}
}
}
Is the code correct, is this a bug, am I missing something or what? Is there a way around this?