Even I am facing the same issue , can you write me back on ******@outlook.com ,
How to save email attachment in outlook email to local drive through Graph API
Hi Team,
I am trying to read the mails and save the attachments in local drive from outlook by using Graph API, so here the problem is I am unable to save the mail attachments(.eml) but am able to save remaining like Microsoft Excel, Word, PDF, Image attachments. For all remaining items I am getting content bytes (Image 1) but only for .eml files I am unable to get the content bytes (Image 2).
Please check the below images for your reference.
Microsoft Security | Microsoft Graph
2 answers
Sort by: Most helpful
-
-
Mehtab Siddique (MINDTREE LIMITED) 971 Reputation points
2023-02-27T14:07:29.4666667+00:00 To Get the MIME raw contents of a contact attachment on a message: please check this sample example here given in the Microsoft docs:
For more information: https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http#example-7-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".