web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : dXy7oEHHmwk8f4Y7j4lLc1
Power Automate - Building Flows
Unanswered

Extract Body of email to PDF file

Like (0) ShareShare
ReportReport
Posted on 28 Sep 2018 00:53:58 by 2

I want to 'print' the body of an email to a PDF file and save it into a OneDirve folder. How could I do this?

I have the same question (0)
  • v-yamao-msft Profile Picture
    on 01 Oct 2018 at 03:06:50
    Re: Extract Body of email to PDF file

    Hi @MeThree_,

     

    Do you want to save email body into a PDF file and save the file into an OneDrive folder?

    Please try the following flow. You could create a file on OneDrive folder, then use the action Convert file to convert the document to pdf file.

    Please check the following screenshot for a reference.

     1.PNG

     

    Best regards,

    Mabel Mao

  • MeThree_ Profile Picture
    2 on 01 Oct 2018 at 19:11:36
    Re: Extract Body of email to PDF file

    I seem to be doing something wrong. This is the error I get at the COnvert File step

     

    Inputs
    File
    01MZODM33AMRKBT5MLZFD3GFAFNFF5RICG
    Target type
    PDF
    Outputs
    Status code
    400
    Headers
    Pragma
    no-cache
    x-ms-request-id
    67a42885-c3e4-4028-86d6-6786bfda0886
    Timing-Allow-Origin
    *
    x-ms-apihub-cached-response
    true
    Cache-Control
    no-cache
    Date
    Mon, 01 Oct 2018 19:10:23 GMT
    X-AspNet-Version
    4.0.30319
    X-Powered-By
    ASP.NET
    Content-Length
    512
    Content-Type
    application/json
    Expires
    -1
    Body
    {
      "status"400,
      "message""Error from Office Service. Url= HttpCode= OK ResponseHeaders=ResponseCode: Failure\r\nErrorCode: WordFileTypeBlocked\r\nIsExpectedFailure: True\r\nErrorCategory: BadRequest\r\nServiceID: 67a42885-c3e4-4028-86d6-6786bfda0886\r\nOutputFormat: PDF\r\nServiceRegion: EastUS2\r\nConversionTime: 234.3561\r\nSourceFileDownloadTimeInMs: 359.3187\r\nDate: Mon, 01 Oct 2018 19:10:23 GMT\r\nServer: Microsoft-IIS/8.5\r\nX-Powered-By: ASP.NET\r\n",
      "source""api.connectorp.svc.ms"
  • ashiqf Profile Picture
    124 on 20 Jun 2020 at 07:14:28
    Re: Extract Body of email to PDF file

    I've written a blog post which shows how to actually include the embedded images on the Outlook email to the generated PDF file with PowerAutomate using API conversion service from ConvertAPI. If you have resources & skillset, you can write your own conversion service in Azure which can then be called in PowerAutomate, have provided insights on the blog post. Find below the link to the blog post:

    https://ashiqf.com/2020/06/19/convert-outlook-email-with-embedded-images-to-pdf-using-powerautomate/

    Hope this helps someone.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard
Loading complete