Power Automate flow: a new email attachment saves itself to SharePoint

How to Automatically Save Email Attachments to SharePoint (Power Automate, Step by Step)

  • TIPS & TRICKS/
  • How to Automatically Save Email Attachments to SharePoint (Power Automate, Step by Step)/

How to Automatically Save Email Attachments to SharePoint (Power Automate, Step by Step)

If your team emails invoices, signed forms, timesheets or reports around all day, someone is downloading those files and dragging them into SharePoint by hand. It's dull, it's easy to forget, and files end up scattered across inboxes.

In the next 15 minutes you'll build a Power Automate flow that does it for you: every time an email arrives with an attachment, the file saves itself to a SharePoint library. No code, no developer — just the tools already in your Microsoft 365 subscription.

This is the first in our series of seven build-along Power Automate guides. It's the one we start people on in our workshops, because it's genuinely useful and it teaches the pattern everything else builds on: a trigger, a loop, and an action.

What you'll need before you start

  • A Microsoft 365 business account with Outlook and SharePoint (any standard business plan includes Power Automate for flows like this).
  • A SharePoint site and document library where the files should land. Create one first if you need to — note the site name and the library/folder.
  • Permission to that library (you need to be able to add files).
  • About 15 minutes.

Time-saver: decide now which folder the files go in and roughly how you'll tell "real" attachments apart from things like email-signature logos. We'll handle both below.

The flow at a glance

Trigger: new email with an attachment → Action: save the file to SharePoint

In plain English: When a new email arrives that has an attachment → for each attachment → create a file in SharePoint with that attachment's name and content.

Step 1 — Create a new automated flow

  1. Go to make.powerautomate.com and sign in with your work account.
  2. In the left menu choose Create, then select Automated cloud flow.
  3. Give it a clear name — e.g. "Save email attachments to SharePoint". Future-you will thank you.
  4. In the trigger search box, type email and choose "When a new email arrives (V3)" (the Office 365 Outlook connector). Click Create.
Naming the flow and choosing the "When a new email arrives (V3)" trigger

What you’re seeing: the “Build an automated cloud flow” dialog — we’ve named the flow and searched the trigger list for a new email arriving.

The V3 trigger selected — note it's the Office 365 Outlook one, not Outlook.com

What you’re seeing: the trigger results — we picked “When a new email arrives (V3)”, the Office 365 Outlook (work mailbox) version, not Outlook.com.

Step 2 — Configure the trigger (this is where most people go wrong)

Click the trigger on the canvas to open its Parameters. Under Advanced parameters, click Show all to reveal every option, then set the following:

The trigger's Advanced parameters — click "Show all" to reveal From, Include Attachments, Subject Filter, Importance, Only with Attachments and Folder

What you’re seeing: the trigger’s settings after Advanced parameters → Show all — this is where you switch on Include Attachments / Only with Attachments and add any From or Subject filters.

  • Folder: Inbox (or a specific sub-folder if you route these emails with a rule — more reliable than filtering the whole inbox).
  • Only with Attachments: Yes — the flow will ignore emails that have none.
  • Include Attachments: Yescritical. If this is No, the attachment content never reaches the flow and nothing saves.
  • From (optional): lock it to a specific sender, e.g. invoices@supplier.com, so only the emails you care about trigger it.
  • Subject Filter (optional): e.g. Invoice — only fires when that word appears in the subject.

Why the filters matter: without them, every email with any attachment triggers the flow — including newsletters and signature logos. A From or Subject Filter keeps it tight.

Step 3 — Add the SharePoint action (the loop is automatic)

A single email can carry several files, so each attachment has to be handled one at a time — a loop. Here's the good news: in the current designer you don't build the loop yourself. As soon as you use an attachment field in the next step, Power Automate wraps it in an Apply to each loop for you. So we go straight to the action.

  1. Click the + under the trigger, choose Add an action, and search for Create file.
The Add an action panel — search for the action you need

What you’re seeing: the “Add an action” panel, opened from the + under the trigger — this is where we add the step that saves the file.

  1. Under the SharePoint heading, choose Create file (there's a OneDrive "Create file" too — make sure you pick the SharePoint one).
Create file appears under both OneDrive and SharePoint — pick SharePoint

What you’re seeing: the search for “Create file” — note it appears under both OneDrive and SharePoint, so pick the SharePoint one.

  1. Fill the fields:
    • Site Address: pick your SharePoint site from the dropdown.
    • Folder Path: browse to the target library/folder (e.g. /Shared Documents/Incoming Invoices).
    • File Name: add the dynamic content Attachments Name.
    • File Content: add the dynamic content Attachments Content.
The SharePoint Create file action and its four fields: Site Address, Folder Path, File Name, File Content

What you’re seeing: the SharePoint Create file action and its four fields — where you point the flow at your site and library and map the file name and content.

The moment you drop Attachments Name into the File Name field, you'll see the whole step slide inside an Apply to each — that's Power Automate adding the loop for you.

  1. Click Save (top right).

That's the flow built.

Step 4 — Test it

  1. Click Test (top right) → ManuallyTest.
  2. Send yourself an email that matches your filters, with a file attached.
  3. Watch the run: a green tick on each step means success. Open your SharePoint library — the file should be sitting there.

If a step shows a red error, click it to read the message — it almost always tells you exactly which field is unhappy.

Common gotchas (and the fixes)

  • Two files with the same name overwrite each other. In File Name, put the date in front: click the field, add an ExpressionformatDateTime(utcNow(),'yyyy-MM-dd') — then a hyphen, then Attachments Name. Now you get 2026-07-07-invoice.pdf.
  • Random tiny images keep saving (company logos in signatures count as attachments). Add a Condition before the Create file step: Attachments Size is greater than 20000 (bytes) to skip anything under ~20 KB.
  • "Include Attachments" was left on No. The classic. If files save with 0 KB or nothing appears, this is why.
  • Wrong library. Folder Path must point at the document library, not the site root.

Make it your own

  • Swap SharePoint → Create file for OneDrive for Business → Create file to save to a personal drive instead.
  • Add a Post message in a chat or channel (Teams) action after the save, so the team gets a heads-up that a new file landed. (That's the next guide in this series — the two combine nicely.)
  • Point different senders at different folders by duplicating the flow with different filters.

You just automated a job nobody enjoyed

This is the core Power Automate pattern — trigger, loop, action — and once it clicks, the other six flows in this series are variations on the same idea.

If you'd rather learn this hands-on, building real flows for your own inbox with a trainer in the room, that's exactly what our [Power Automate Introduction](/courses/power-automate/power-automate-introduction) course is for. Prefer to go deeper into approvals, error handling and multi-step logic? [Power Automate Advanced](/courses/power-automate/power-automate-advanced) picks up where this leaves off.

Next in the series: Get a Teams alert when an important email arrives — the next guide in this series (coming soon).

Part of: 7 Power Automate Flows That Save UK Office Teams Hours Every Week

Related Articles
  • Calculate Variance Using Excel
    Tips & Tricks

    Can you Calculate Variance Using Excel?

    In this guide, we explain variance as a measure of how widely data points deviate from the mean and shows why understanding this spread is useful for deeper insight and risk assessment. It walks readers through calculating variance in Excel, distinguishing between the VAR.S function for a sample and VAR.P for an entire population, then demonstrates each with a car-sales case study.

  • excel-lookup-multiple-criteria-team
    Tips & Tricks

    How to Use Excel Lookup with Multiple Criteria

    This blog explains how Excel’s LOOKUP functions—particularly XLOOKUP and VLOOKUP—can retrieve data based on multiple criteria. It walks through a step-by-step example of finding an employee’s sales in a specific region, showing both an XLOOKUP formula and a VLOOKUP alternative that uses a helper column.

  • excel_skills_assessment_questionnaire
    Tips & Tricks

    Excel Skills Self-Assessment Questionnaire

    This free, printable Excel Skills Self-Assessment helps you quickly gauge your level and pick the right next step in your learning path. It contains 15 multiple-choice questions spanning navigation, formulas, lookups, tables, PivotTables, charts, dynamic arrays, Power Query, and more. You’ll score yourself and interpret the result to see whether you’re Beginner, Intermediate, or Advanced - then follow tailored course recommendations based on your score.

image

Registered England and Wales: 11477692 VAT Number: GB 3123317 52All trademarks are owned by their respective owners. Click here for details.

  • image
  • iamge
  • image