question

ewilson avatar image
0 Votes"
ewilson asked

isDeliveryReceiptRequested and data type mismatch during deserialization.

More of a suggestion than a question.

I noticed some peculiar behavior with the Outlook/Mail portion of the Graph API, specifically as it pertains to retrieving message information. In the default template (this can be seen in Graph Explorer) when you retrieve the list of messages for an inbox there's an element in the JSON for every message titled isDeliveryReceiptRequested. In the vast majority of cases, this element is set to null even though it is implied boolean. This causes issues when deserializing the JSON using native Newtonsoft or other libraries as they interpret the field as System.String due to presence of the null value.

I'd suggest changing the handling of Outlook/Mail messages in Graph such that if a field has an implied data type it should always be set to some default value of that implied type. In this case, the isDeliveryReceiptRequested element should always be set to false unless specifically set to true for a message where the receipt was requested.




microsoft-graph-mail
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers