MIME Content from graph API for Hybrid account

peernohell 21 Reputation points
2020-10-05T09:57:13.593+00:00

Hello, I want to know if it's possible to get the MIME content of an email using graph api and from an account that is on an [Hybrid exchange][1]. I have found a similar question on [StackOverflow][2] but without any response for months. Normally I just need to add $value on the request but it's seems not implemented on hybrid exchange, because without the $value I have the email resource but if I add the $value I get an error. Did I do something wrong ? Otherwise where can I ask for feature request. It's sad to be able to have the resource object and not the real email content. [1]: https://video2.skills-academy.com/en-us/exchange/exchange-hybrid [2]: https://stackoverflow.com/questions/60062333/how-to-get-mime-content-via-rest-from-on-premises-exchange-server

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,098 questions
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,631 Reputation points Microsoft Employee
    2020-10-06T20:22:27.063+00:00

    @peernohell
    Thank you for the detailed post and response!

    Getting the MIME content of an email using MS Graph API currently isn't supported for Exchange hybrid deployments, since the ability to use these REST APIs in hybrid deployments is in preview. The only available operations are - Mail, Calendar and Contacts APIs.

    As you and Lydia stated above, the only way to get the MIME content of a message via Graph API is at the "Get MIME content of a message" documentation. If you'd like to submit a feature request to our MS Graph team, you can do so using their Microsoft Graph Feature Requests forum.

    You can also stay in the loop with GraphAPI changes and the MS Graph Community.

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "mark as answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. peernohell 21 Reputation points
    2020-10-06T06:44:33.867+00:00

    Hi Lydia,

    Thank you for your quick reply.
    First of all sorry, for missing tagging. As I know that the request work perfectly on cloud accounts but seems not doable with user that have exchange hybrid account, I tought that it was the best tag (also, I thought that the AD in the tag "azure-ad-graph", mean it was question about active directory).
    I already read the article you share and they explain that we have to add "$value" on the request to get the MIME, and it works perfectly except if the user have an hybrid Exchange account. In that case our application receive the message " REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at https://dev.outlook.com/".
    That's why I has if it's possible to have the MIME content with an other way (but I don't think so)
    Or, is there a way to request improvement with the hybrid exchange API to support that feature.
    P.S: sorry if I'm not really clear, english is not my native language 😓

    0 comments No comments

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.