How to process ItemAttachments attachments , I dont need to save it as in some folder as eml and all?

Saket Jha 0 Reputation points
2024-08-27T12:41:02.72+00:00

Hi All,

My requirement is to get the attachment of an email and attach to my UI control, For attachments whose @odataType is ItemAttachments, they are not working as for those attachments we are not able to get details like content-type, contentBytes. For extensions falling under @odataType File Attachments, its working fine as we are able to get the content-type & ContentBytes.

I saw multiple places to use $value to get raw Mime Content Message, but curious once I get that MimeMessage what should be next steps such that I can get proper and correct content-type, ContentBytes.. Please see we should not get content-type as plain-text as we are getting while using $value in graph API End points

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,776 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.