๐ŸŒŸ Effortlessly Save Email Attachments to SharePoint in 5 Easy Steps

If youโ€™re overwhelmed with downloading email files manually, you’re not alone. Luckily, with Microsoft Power Automate, you can save email attachments to SharePoint in 5 easy steps – automatically, and with zero coding. In this guide, weโ€™ll walk you through the exact process to set it up.

๐Ÿ“ฅ Why Automate Saving Email Attachments?

Manually downloading email attachments and uploading them to SharePoint can be a tedious routine. Using Power Automate, you can streamline this process. This tutorial will show you how to save email attachments to SharePoint in 5 easy steps, saving time and improving your workflow.


๐Ÿ”ง What You Need Before You Begin

Before starting, make sure you have:

  • A Microsoft 365 account with Outlook and SharePoint access
  • A specific SharePoint site and document library to save attachments
  • Access to Power Automate: https://make.powerautomate.com

โœ… Step-by-Step Guide: Save Email Attachments to SharePoint in 5 Easy Steps

Step 1: Create a New Automated Flow

  • Visit make.powerautomate.com. Click on โ€œMy Flowsโ€ from the left sidebar.
  • Click โ€œNew Flowโ€ at the top > choose โ€œAutomated Cloud Flowโ€.

A popup window will appear:

step 1 create a new automated flow

  • Enter the flow name: Save email attachment to SharePoint
  • Search for โ€œnew emailโ€
  • Select โ€œWhen a new email arrives (V3)โ€
    ๐ŸŸข Trigger Defined:
    This trigger activates the flow when a new email is received.
  • Click โ€œCreate.โ€

Step 2: Add a Condition for Attachments

  • Add a Condition action
  • Use Has Attachments is equal to true to check if the email includes files
Step 2 Add a Condition for Attachments

has attachment field in condition action

Step 3: Add a Create file action

Inside the “True” branch:

  • Click the plus (+) icon
  • Search for โ€œCreate fileโ€
  • Choose Create file under SharePoint
Step 3 add a create file action

Configure it:

  • Site Address: Select your SharePoint site
  • Folder Path: Choose your target document library
  • File Name: Select Attachments Name by clicking on flash icon, the icon will appear there when you click inside the File name field
  • File Content: Leave it blank for now
configure parameters in create file action

๐Ÿ’ก Note that when you add Attachments Name, Power Automate automatically adds a For each action to handle multiple attachments.

Step 4: Add a Get Attachment (V2) action

Now, to get the attachment file content, add a Get Attachment (V2) action inside the For each loop, above the Create file action.

After adding the Message Id, click inside the Attachment Id field. Then, click on the flash icon to view the dynamic content list

In the dynamic content list, search for ‘Attachment Id‘ and select ‘Attachments Attachment Id‘ from the results. This dynamic content is provided by the trigger ‘When a new email arrives (V3)‘.

Step 4 Add a Get Attachment (V2) action

Step 5: Add File Content in Create file

Click on the ‘Create file‘ action located below the ‘Get Attachment (V2)‘ action.

Inside the ‘File Content‘ field, either click on the flash icon or type ‘/’ and hit enter to open the dynamic content list.

From the dynamic content list, select ‘Content Bytes‘. This value comes from the ‘Get Attachment (V2)‘ action.

save email attachments to SharePoint in 5 easy steps

Click Save, then test by sending a sample email with an attachment. Check your SharePoint library to confirm itโ€™s working.

Congratulations – youโ€™ve now learned how to save email attachments to SharePoint in 5 easy steps using Power Automate!


๐Ÿ“˜ Trigger and Action Definitions

๐Ÿ”น Trigger: When a new email arrives (V3)

Starts the flow when an email hits your inbox.

๐Ÿ”น Condition

Checks if the incoming email contains attachments.

๐Ÿ”น Apply to each or For each

Loops through each attachment to take actions.

๐Ÿ”น Create File (SharePoint)

Creates a new file in your SharePoint document library.

๐Ÿ”น Get Attachment (V2) (Office 365 Outlook)

Gets the attachment file content using the Message Id and Attachment Id.


๐Ÿ“Š Final Thoughts

Using Power Automate to save email attachments to SharePoint in 5 easy steps is a time-saving solution thatโ€™s easy to set up and maintain. Whether you’re handling invoices, contracts, or reports, automation brings peace of mind and efficiency.

If you’re ready to stop wasting time on repetitive tasks, give this method a try today!

๐Ÿ’กBonus Resources

Leave a Comment