The Microsoft Graph API is wrongly returning Word doc file attachments as message entities returned from the /me/messages endpoint.
The scenario to reproduce is as follows:
Send yourself an email (or have someone else send you an email) with one or more Word doc file attachments
Run the following query in Graph Explorer: https://graph.microsoft.com/v1.0/me/messages
Notice that there will be one object which represents the email itself (this is correct behaviour) and one or more objects which are representations of the file attachments.
Could someone from Microsoft please get in touch regarding this as soon as possible? This is a major bug in the API which will probably cause issues for most applications using it.
P.S. This issue was previously raised and fixed, but it has reared it's head again... File attachments showing as message entities in Microsoft Graph API
May I also suggest that some automated tests are written around this issue to prevent it from happening again in the future?
Thanks for reporting the issue, it should be resolved in the near future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With