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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract Body of email ...
Power Automate
Unanswered

Extract Body of email to PDF file

(0) ShareShare
ReportReport
Posted on 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?

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    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 at

    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 at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard