Graph - Provide access to ItemAttachment bytes
In the EWS api we could download an email attachment that is itself an email (say message.eml) as a byte array, untouched. This does not appear to be possible in the Graph API. The itemAttachment is visible using $expand=microsoft.graph.itemattachment/item but only as exploded json and attachments to the itemAttachment itself are not there.
I work in a Search and Rescue environment (lives are at stake) and from an auditing/quality/completeness perspective I need to know exactly what was attached to the email (the bytes). I think the API needs to be enhanced to provide this. Can I suggest that the api allows an ItemAttachment to be treated exactly as a FileAttachment (returning contentBytes)?
This work has been started. This will be available in (beta) shortly.
Remco Borst commented
At the moment i am stuck on the exact same issue. I an trying to read all e-mails into our ticket system. Some of these e-mails contain e-mail attachments of which i can only retreive the contents of.. but never any underlying attachments. This could be virtually never ending, so the best option would be to just download the message like mentioned above. Please add this!