---
title: "Power Automate convert email attachment to PDF | Nutrient"
canonical_url: "https://www.nutrient.io/guides/document-converter/power-automate/conversion/email-with-attachments-to-pdf/"
md_url: "https://www.nutrient.io/guides/document-converter/power-automate/conversion/email-with-attachments-to-pdf.md"
last_updated: "2026-06-09T00:00:00.000Z"
description: "Automatically convert email attachments to PDF and archive them in OneDrive using Power Automate. Customize for various email providers and storage services."
---

# Convert email attachments to PDF using Power Automate

In this guide, you’ll learn how to automatically convert all email attachments to PDF and archive them to your desired file service using Power Automate and [Nutrient Document Converter](https://www.nutrient.io/low-code/try/converter-power-automate/). For this example, the flow is triggered when an email containing attachments is received in Office 365 Outlook. The flow then iterates over all the attachments and converts the ones it knows how to convert to PDF. The resulting PDF files are archived to a OneDrive for Business folder, which will sync the files to other systems if needed.

It’s also important to note that this example can easily be modified to use different email providers (e.g. Outlook.com, Gmail) and the converted attachments can be written or emailed to any of the 100+ available [flow services](https://flow.microsoft.com/services/), including Google Drive, Box.com, Dropbox, OneDrive, and SharePoint.

This guide focuses on the attachments; if you also need to capture the message itself, see how to [convert an email’s body to PDF](https://www.nutrient.io/guides/document-converter/power-automate/conversion/email-to-pdf.md) in the same flow.

## The workflow

From a high level, the flow works as shown below.![PDF Attachments - Overview](@/assets/guides/muhimbi/pdf-converter/power-automate/email-with-attachments-to-pdf-1.png)

The full flow can be found further down. You can automatically create this using the [Archive email attachments in PDF format to OneDrive](https://flow.microsoft.com/galleries/public/templates/523ae5e0161711e7a0e011398edc3fa3/archive-email-attachments-in-pdf-format-to-onedrive/) flow template.

Once you have this template, you need to fill out the following:

- **Save to OneDrive** > **Folder path** — Specify the path in OneDrive where the converted attachments will be written to.

In this particular example, all files are written to a flat folder. If you were to use the original attachment file name to save the PDF in OneDrive, the files would potentially be overwritten. This could happen if a single email has multiple attachments with the same name, or if multiple emails are processed and some use an attachment with the same name.

A workaround for this is the [Compose action](https://docs.microsoft.com/en-gb/azure/logic-apps/logic-apps-workflow-definition-language#functions), which is used to convert the time that the workflow is executed. This matches the time the email is received, and it cleans it up for use in file names (by replacing **:** with **-**). Then, you concatenate it to each file name. If your requirements are different, feel free to change this or add the timestamp to the OneDrive path to automatically create a subfolder for each email and its attachments.![PDF Attachments - Detail - Part1](@/assets/guides/muhimbi/pdf-converter/power-automate/email-with-attachments-to-pdf-2.png)![PDF Attachments - Detail - Part2](@/assets/guides/muhimbi/pdf-converter/power-automate/email-with-attachments-to-pdf-3.png)

One of the tricks in this example is changing the default **Fail on error** option in the Nutrient workflow actions from **Yes** to **No**. As a result, the flow won’t fail if an unsupported or broken attachment type is encountered. By evaluating the **Result code**, you can decide if the operation was successful and write the PDF to OneDrive. For more details about this concept, refer to the **Error Handling** section in our [core concepts](https://www.nutrient.io/guides/document-converter/power-automate/knowledge-base/microsoft-flow-core-concepts-used-by-the-pdf-converter.md) Knowledge Base article.

You can now publish the flow and send an email containing MS Word, MS Excel, MS PowerPoint, or other supported files types to the email address associated with the flow. After a few seconds, a PDF will appear in the destination folder.

For more details about using Nutrient’s flow actions, refer to the [core concepts](https://www.nutrient.io/guides/document-converter/power-automate/knowledge-base/microsoft-flow-core-concepts-used-by-the-pdf-converter.md) knowledge base article, as well as all other [flow-related posts](https://www.nutrient.io/guides/document-converter/power-automate.md).

## Additional resources

For more information, refer to the following resources.

### Power Automate templates

To accelerate your workflow, we’ve curated a selection of ready-to-use templates within Power Automate. Access these resources by logging in to your [Power Automate account](https://make.powerautomate.com/environments/Default-bfb30d1e-c808-43d2-bc0d-594fc841addf/templates) and searching for the templates listed below by their precise names:

- Generate PDFs from Microsoft Forms and Send via Email

- Convert Email to PDF and archive in DropBox

- Send a PDF version by email when a SharePoint document is added

- Automatically convert newly added OneDrive files to PDF

- Export a Power Bi report to PDF and send it by email

- Archive email attachments in PDF format to OneDrive

- Convert Any SharePoint File to PDF and Add a Text Watermark

- Convert InfoPath Forms to PDF

- Send updates from the Power Automate blog as a PDF by email

- Convert Files to Text Searchable PDF with OCR

### Articles

- [Video: Converting emails (including all attachments) to PDF](https://www.nutrient.io/resources/tutorial-converting-emails-including-all-attachments-to-pdf-using-ms-flow)

- [Automatically convert emails (including all attachments) to PDF](https://www.nutrient.io/blog/automatically-convert-millions-of-emails-including-all-attachments-to-pdf/)

- [Convert and archive incoming emails in PDF format](https://www.nutrient.io/blog/how-to-use-microsoft-flow-to-convert-emails-to-pdfs/)

- [Attach converted PDF files to an email](https://www.nutrient.io/blog/attach-converted-pdf-files-to-an-email-using-microsoft-flow-and-sharepoint-online/)
---

## Related pages

- [Convert CSV files to Excel with Power Automate](/guides/document-converter/power-automate/conversion/csv-to-excel.md)
- [Convert CAD/DWG to PDF using Power Automate](/guides/document-converter/power-automate/conversion/cad-to-pdf.md)
- [Convert email to PDF using Power Automate](/guides/document-converter/power-automate/conversion/email-to-pdf.md)
- [Convert to PDF using Power Automate](/guides/document-converter/power-automate/conversion/convert-to-pdf.md)
- [Power BI automated export to PDF using Power Automate](/guides/document-converter/power-automate/conversion/bi-reports-to-pdf.md)
- [Convert Excel to PDF using Power Automate](/guides/document-converter/power-automate/conversion/excel-to-pdf.md)
- [Convert form to email using Power Automate](/guides/document-converter/power-automate/conversion/form-to-email.md)
- [Convert documents using Power Automate](/guides/document-converter/power-automate/conversion.md)
- [Convert InfoPath forms to Word documents](/guides/document-converter/power-automate/conversion/infopath-to-word.md)
- [Convert InfoPath to Excel](/guides/document-converter/power-automate/conversion/infopath-to-excel.md)
- [Convert InfoPath forms to PDF](/guides/document-converter/power-automate/conversion/infopath-to-pdf.md)
- [Convert HTML to PDF using Power Automate](/guides/document-converter/power-automate/conversion/html-to-pdf.md)
- [Convert Excel files to CSV with Power Automate](/guides/document-converter/power-automate/conversion/excel-to-csv.md)
- [Transform Microsoft Forms into Word documents](/guides/document-converter/power-automate/conversion/ms-form-to-word.md)
- [Convert images to PDF in Power Automate](/guides/document-converter/power-automate/conversion/image-to-pdf.md)
- [Convert Nintex forms to PDF with Power Automate](/guides/document-converter/power-automate/conversion/nintex-form-to-pdf.md)
- [Convert TXT files to PDF using Power Automate](/guides/document-converter/power-automate/conversion/text-to-pdf.md)
- [Convert Visio to PDF Using Power Automate](/guides/document-converter/power-automate/conversion/visio-to-pdf.md)
- [Convert SharePoint files to PDF using Power Automate](/guides/document-converter/power-automate/conversion/sharepoint-to-pdf.md)
- [Convert SharePoint wiki files to PDF using Power Automate](/guides/document-converter/power-automate/conversion/wiki-to-pdf.md)
- [Convert SharePoint pages to PDF using Power Automate](/guides/document-converter/power-automate/conversion/sharepoint-page-to-pdf.md)
- [Convert Word to PDF with Power Automate](/guides/document-converter/power-automate/conversion/word-to-pdf.md)
- [Convert PowerPoint to PDF using Power Automate](/guides/document-converter/power-automate/conversion/ppt-to-pdf.md)
- [Convert SharePoint lists to PDF Using Power Automate](/guides/document-converter/power-automate/conversion/sharepoint-list-to-pdf.md)
- [Convert Microsoft Forms to PDF](/guides/document-converter/power-automate/conversion/ms-form-to-pdf.md)
- [Convert XLS to XLSX using Power Automate](/guides/document-converter/power-automate/conversion/xls-to-xlsx.md)

