Save Email Attachments to SharePoint with Power Automate

· 11 min read

Clients email you invoices, statements and signed forms, and someone on your team saves each attachment to SharePoint by hand. You can save email attachments to SharePoint in two ways: one at a time from Outlook, or automatically with a Power Automate flow. The flow watches a mailbox and files every attachment in a document library.

Most teams also want the flow to read a shared mailbox, file by sender, skip signature logos and keep files with the same name apart. Each of those has its own section below, followed by the limits Microsoft documents and the cases where email is the wrong way to collect client documents.

Which method fits your case

MethodGood forWhat you do each time
Save by hand from OutlookA few attachments a weekSave the file, then move it to the right library and folder
Power Automate flowA steady stream of attachments to one mailbox, such as scans, invoices or a shared "documents@" addressNothing, once the flow runs. You check the folder and fix the odd failed run
An upload page instead of emailClients who send you documents you asked for, every month or every tax seasonSend a link. Files arrive in the SharePoint folder you picked

How to save an Outlook attachment to SharePoint by hand

Outlook has no button that sends an attachment to a SharePoint library. You save it somewhere Microsoft 365 can reach first, then move it.

New Outlook and Outlook on the web

  1. Open the email and select the dropdown arrow on the attachment.
  2. Select Save to OneDrive.
  3. Open OneDrive, select the file and select Move to.
  4. Pick the SharePoint site and library, open the folder you want, and select Move here.

If no other sites show up in the Move to panel, Microsoft says your organization doesn't allow moving across sites. Ask your admin, or download the file and upload it to the library instead.

Classic Outlook for Windows

Sync the library to your computer once: open it in your browser and select Sync. The library then shows up in File Explorer under your organization's name.

From then on, select the attachment's dropdown arrow and choose Save As, or Save All Attachments for every file in the email. Save to the synced library folder, and the OneDrive sync app uploads the files to SharePoint.

How to save email attachments to SharePoint with Power Automate

The flow has three parts: a trigger for new email, a loop over the attachments, and a SharePoint action that creates one file per attachment.

What you need:

  • A work or school Microsoft 365 account. The Office 365 Outlook and SharePoint connectors are standard, so you don't need a premium license.
  • A SharePoint document library you can add files to, ideally with a folder for email attachments.
  • The mailbox the attachments arrive in: yours, or a shared mailbox you have full access to.

Step 1: Add the "When a new email arrives (V3)" trigger

  1. In Power Automate, go to My flows and create a cloud flow from blank.
  2. Add the Office 365 Outlook trigger When a new email arrives (V3).
  3. Set Folder to the folder the attachments land in, usually Inbox.
  4. Set Only with Attachments to Yes, so emails without files never start the flow.
  5. Set Include Attachments to Yes, so the trigger passes the file content to the next steps.
  6. Optional: to file only some emails, fill From with sender addresses separated by semicolons, or Subject Filter with a word the subject must contain.

The trigger only watches that folder. If an inbox rule moves client emails into a subfolder, point the trigger there.

Step 2: Loop over the attachments

Add an Apply to each action and give it the trigger's Attachments output. Everything in the next two steps goes inside this loop, so it runs once per file.

Step 3: Skip inline images

Logos in email signatures and pasted screenshots come through as attachments too. Inside the loop, add a Condition: Is Inline is equal to false. Put the next step in the True branch and leave the False branch empty.

Step 4: Create the file in SharePoint

In the True branch, add the SharePoint action Create file and fill in four fields:

  • Site Address: pick the site, for example https://contoso.sharepoint.com/sites/clients.
  • Folder Path: pick the library and folder, for example /Shared Documents/Email attachments. The path has to start with a library that already exists.
  • File Name: the attachment's Name.
  • File Content: the attachment's Content.

Step 5: Save and test

Save the flow and send yourself an email with two attachments and a signature logo. Check the run history: you want one successful run, and only the two real files in the folder.

Options that make the flow work for client email

Save attachments from a shared mailbox

Use the trigger When a new email arrives in a shared mailbox (V2) instead. It has the same settings, plus a required Original Mailbox Address field for the shared mailbox's address.

  • The account that owns the flow needs access to the shared mailbox. After you grant it, Microsoft says permissions can take about two hours to reach Power Automate.
  • A Microsoft 365 group address can't be used as the shared mailbox address.
  • One trigger watches one mailbox. For two mailboxes, build two flows.

Save to a folder per sender or per month

Build the Folder Path from the email itself. The field's help text says you can add folders after the library.

  • A folder per sender: type /Shared Documents/Email attachments/ and add the trigger's From value after it. Each client gets a folder named after their email address.
  • A folder per month: add an expression after the library path, such as formatDateTime(triggerOutputs()?['body/receivedDateTime'], 'yyyy-MM'), which gives folders like 2026-12.

Stop files with the same name from colliding

Clients send "scan.pdf" and "invoice.pdf" again and again. Microsoft's reference doesn't say what Create file does when a file with that name already exists. So give every file a unique name.

Set File Name to an expression that puts the received time in front of the original name:

concat(formatDateTime(triggerOutputs()?['body/receivedDateTime'], 'yyyy-MM-dd HHmmss'), ' ', items('Apply_to_each')?['name'])

That turns scan.pdf into "2026-12-01 093015 scan.pdf". Leave colons out of the time format: SharePoint doesn't allow " * : < > ? / \ | in file or folder names. If your loop has a different name in the designer, change Apply_to_each to match.

Keep signature logos out

The Is Inline check catches most logos, but some arrive as ordinary attachments. If those still get through, add a second condition to the True branch. Skip files whose Content-Type starts with image/ and whose Size (in bytes) is below a small value, such as 20000. To choose the value, open a few past runs in the flow's run history, note the Size of the logos and of the real document photos, and pick a number between them.

Handle a busy mailbox

With Include Attachments set to Yes, the trigger waits until every attachment has downloaded. Microsoft warns that it can time out when many emails with attachments arrive at once. For a busy mailbox, set Include Attachments to No. Inside the loop, add Get Attachment (V2) with the trigger's Message Id and the loop's Attachment Id. If you use the shared mailbox trigger, also enter the shared mailbox's address in Original Mailbox Address. In Create file, use Get Attachment's Content Bytes output as the file content.

Limits Microsoft documents

From Microsoft's Office 365 Outlook connector reference and its Power Automate limits page:

  • Large emails are skipped. Both triggers skip any email whose total size is over 50 MB or your Exchange admin's limit, whichever is lower. They may also skip protected emails and emails with an invalid body or attachments.
  • Signed emails may not save correctly. For digitally signed emails, Microsoft says the attachment content from the trigger, or from Get Attachment (V2), may be wrong and can't be used to create a file.
  • Attached emails aren't saved. Emails, calendar items and bounce messages attached to an email are "item attachments", which the connector doesn't support. EML, MSG and ICS files only come through inside a .zip.
  • Some emails can be missed. Microsoft says the trigger can miss some emails when many arrive at the same time, and calls this rare. The V3 trigger can also, in rare cases, fire up to an hour late.
  • Double runs with Safe Attachments. If Microsoft Defender's Safe Attachments uses Dynamic Delivery, the trigger can run twice, the first time with no attachments. Microsoft's workaround is a condition that checks the attachments array isn't empty.
  • Flows get switched off. A flow whose trigger or actions fail continuously for 14 days is turned off. A flow that isn't triggered for 90 days might be turned off unless its owner has a premium license. Owners get an email 30 days before. A mailbox that only gets client files at tax time can hit that.

Where email breaks down for client documents

The flow files what arrives. It can't tell you what didn't. That's fine for scanner output or supplier invoices, but not when you rely on email to collect documents from clients:

  • Nothing shows what's missing. You asked for three bank statements and a W-2. Two files came in. The folder doesn't know what you asked for, so someone still checks each client by hand and sends the reminder.
  • Clients decide what to send. Phone photos, a screenshot of a PDF, the same file twice, last year's version. File names like "IMG_4021.jpg" tell you nothing.
  • Folders follow email addresses. One client with two addresses ends up with two folders. A spouse or an assistant sends the rest, and the files land somewhere else.
  • Big files turn into links. Personal Gmail attaches up to 25 MB and swaps anything bigger for a Google Drive link, which your flow can't save.
  • Your inbox is the system. If the flow fails or gets switched off, files sit in the mailbox until someone notices.

If you send the same "please send us..." email to many clients every month, the flow does the filing but leaves the chasing to you. Automated client reminders covers that part of the job.

When clients send documents often, use an upload page

The alternative is to stop collecting by email. Each client gets a link to an upload page, and their files are saved to the SharePoint folder you chose. Microsoft's own option is SharePoint Request files, which needs Anyone links turned on in your tenant. Microsoft Forms won't help here, because Forms file upload is limited to people in your organization. For a side-by-side look at every route, see how to let external users upload files to SharePoint.

File Request Pro works this way. You create a request per client that lists the documents you need, and they upload on your page without an account or login. Files pass through File Request Pro's servers on the way to the SharePoint folder you picked. Optional subfolders can be named from the client's answers, such as their name. Reminders, on Lite and up, go out on a schedule you set and stop once every required document is in.

  • SharePoint is on the Pro plan and up. Google Drive, OneDrive and Dropbox are on every plan.
  • Your Microsoft 365 admin usually approves the app once, because it asks for SharePoint access that Microsoft's default settings don't let users approve themselves.
  • The free trial runs for 15 days or 25 files, needs no credit card, and includes SharePoint.

Keep the flow for the mailbox that will always get attachments. Move the clients you chase every month to a request. Start a free trial and send your first one to a client who usually emails you their documents.

Common questions

Do I need a premium Power Automate license?

No. Office 365 Outlook and SharePoint are standard connectors, which work or school accounts can use in cloud flows at no extra cost. One catch: without a premium license, a flow that isn't triggered for 90 days might be turned off.

Can the flow save attachments to OneDrive instead?

Yes. Keep the same trigger and loop, and swap the SharePoint Create file action for the OneDrive for Business one. It has the same Folder Path, File Name and File Content fields, and it replaces characters OneDrive doesn't allow with underscores.

More Articles

Ready to streamline your document collection?

Try File Request Pro free and start collecting files from clients in minutes.

Start Free Trial