cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Extract Body of email to PDF file

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?

3 REPLIES 3
Highlighted
Community Support
Community Support

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

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

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"
Highlighted
Helper II
Helper II

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.

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,219)