
How to Automatically Save Email Attachments Using Power Automate
1
781
0
Power Automate is a powerful tool that allows you to automate repetitive tasks and processes, saving time and effort. In this tutorial, we will guide you step-by-step on how to create a flow in Power Automate that automatically saves email attachments to a designated folder in SharePoint. With clear instructions this guide is designed to be easy to follow even for beginners.
Introduction
Managing email attachments can be a time-consuming task, especially when dealing with a high volume of emails. With Power Automate, you can streamline this process by automatically saving attachments to a specific folder. This tutorial will walk you through creating an Automated Cloud Flow to handle this task efficiently. By the end of this guide, you will have a fully functional flow that triggers every time a new email with an attachment arrives and saves those attachments to a SharePoint folder.
Step 1: Create a New Flow
Open Power Automate.
Click Create on the left menu.
Select Automated cloud flow.
Automated cloud flows are triggered automatically when a specified event occurs—in this case, when a new email arrives.
Step 2: Configure the Flow Name and Trigger
Enter a flow name, e.g., Email_Attachment.
In the trigger options, choose When a new email arrives (V3) (V3 is the most recent version).
Tip: Use the search bar and type “email” to quickly locate the trigger.
Click Create to proceed.

Step 3: Set Up Email Trigger Properties
Click on the first action, When a new email arrives (V3). This will open the Parameters Properties.
Set the following conditions to Yes:
Include Attachments
Only with Attachments
These settings ensure the flow processes only emails with attachments. If an email doesn’t contain an attachment, the flow will stop after this step.

Step 4: Add an Action
Click the plus (+) icon below the first action.
Select Add an action from the menu.

Step 5: Apply to each Attachment
In the action search bar, type apply to each.
From the Control group, select Apply to each.

Step 6: Configure Input for "Apply to each"
In the Parameters section of the Apply to each action, click the lightning bolt icon (dynamic content selector).

Select Attachments from the options provided in the previous step.

Step 7: Add Action to Get Attachment Content
Inside the Apply to each action, click Add an action.

Search for Get attachment content.
Select Get attachment (V2) from the Office 365 Outlook group.

Step 8: Configure Get Attachment Content Properties
In the Message Id field, click the lightning bolt icon.

Select Message Id from the dynamic content provided by the previous step.

In the Attachment Id field, repeat the same process and select Attachment Id from the dynamic content.

Step 9: Save Attachment to SharePoint
Inside the Apply to each action, click Add an action to create a new step.

Search for Create file.
Select Create file from the SharePoint group.

Step 10: Configure SharePoint File Properties
In the Site Address field, connect to your SharePoint site.
In the Folder Path field, choose the folder where you want the attachments to be saved.
In the File Name field, click the lightning bolt icon and select Name from the Get attachment content (V2) action.

In the File Content field, click the lightning bolt icon and select Content Bytes from the Get attachment content (V2) action.

Step 11: Save and Test Your Flow
Click Save to finalise your flow.

Test your flow by sending an email with an attachment to the account configured in the flow.
Verify that the attachment is automatically saved to the designated SharePoint folder.
Congratulations! You have successfully created a Power Automate flow that automatically saves email attachments to SharePoint. This flow not only saves time but also ensures your attachments are organised and easily accessible. If you encounter any issues, refer to the screenshots provided or check the flow’s run history to debug.