Download mail as PDF

Axel Herrmann 31 Reputation points
2022-12-29T17:16:00.377+00:00

I'm working on a workflow that downloads mails via MS Graph API and converts them to PDF. The workflow's complexity would be decreased very much if there was a way to download/print mails directly as PDF via MS Graph API. Is something like that possible? If not, could I suggest this as a feature?

I'm aware of the possibility to download mails:

  • as .eml via .../messages/{id}/$value (although I don't know how that is made in Java SDK yet)
  • as HTML/Text file via .../messages/{id} and then by using the body attribute

Is there any way to download a mail directly as PDF via MS Graph API? The functionality internally must be there, like when using Outlook in the browser and printing a mail, but is it accessible as user?

Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Bhanu Kiran 3,616 Reputation points
    2022-12-29T23:20:56.88+00:00

    Hello @Axel Herrmann ,

    As per my research, at present there is no such Graph API to download a mail directly as PDF. Since this feature/functionality is presently not available, you can submit a feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.

    Hope this helps!

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.