How to get the file type in csae of .eml attachments to a mail #2835
Unanswered
pratikbomidwar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using graph api to get mail attachment list.
For all other attachments I do get the name with extension like abc.txt but for mail items that is eml and msg I only get name and not extensions, for abc.eml file I get response as abc
Any idea how can I identify the file type in these cases?
Sample resp:
{
"@odata.type": "#microsoft.graph.itemAttachment",
"id": "AAMkADdkMmY3MzUzLWFiMGItNDQ5ZS1iMjgzLTE5NGRiZTgwYzExZABGAAAAAABpjTTdubhyT52Guqo1bAx7BwB9bdQ8ehiFQ4QmT22MGXlcAAAAAAEPAAB9bdQ8ehiFQ4QmT22MGXlcAAA7kSN2AAABEgAQAF3NHNAerGhAnXwNYsyzcvg=",
"lastModifiedDateTime": "2025-02-14T06:37:38Z",
"name": "PratPB",
"contentType": null,
"size": 127662,
"isInline": false
}
Beta Was this translation helpful? Give feedback.
All reactions