Lorixen.
EN

Power Automate for a Small Office: Save Outlook Attachments to SharePoint

Short answer: In Power Automate, create an automated cloud flow that starts with the Office 365 Outlook trigger "When a new email arrives", set it to include attachments and only fire for emails that have them, and filter by sender or subject so it catches only the right messages. Then loop through the attachments, skip inline images such as email signature logos, and use the SharePoint "Create file" action with a dynamic folder path and a file name that cannot clash. Point it at a test folder first, send yourself a few sample emails, and only switch the real folder in once the results look right.

The example we will build

A small lettings office receives signed tenancy forms and ID scans by email to a shared address, lettings@. Today someone drags each attachment into a SharePoint document library, into a folder per month. The flow below does that automatically: every email from outside the company with "Signed" in the subject has its attachments saved to Shared Documents/Signed forms/2026-11/, with the date and time added to each file name.

You need a Microsoft 365 business licence that includes Power Automate for cloud flows, which most business plans do. Microsoft's getting started guide explains the interface.

Step 1: Choose the right trigger

  1. Go to make.powerautomate.com and sign in with your work account.
  2. Choose Create > Automated cloud flow.
  3. Name the flow, for example "Signed forms to SharePoint".
  4. Pick the trigger based on whose mailbox receives the email:
    • When a new email arrives (V3) for your own mailbox.
    • When a new email arrives in a shared mailbox (V2) for a shared address such as lettings@. You must already have access to that mailbox.

Shared mailboxes are the better home for business processes, because the flow keeps working when one person goes on holiday. The full list of triggers and their options is in the Office 365 Outlook connector reference.

Step 2: Filter at the trigger

Open the trigger's advanced options and set:

Option Setting Why
Folder Inbox Or a subfolder fed by an Outlook rule
Include Attachments Yes So the content is available to save
Only with Attachments Yes Stops the flow running on every email
Subject Filter Signed Matches emails whose subject contains this text
From Optional Restrict to one supplier or client

Filtering here, rather than with a condition later, keeps the flow from running thousands of times on irrelevant mail. If you need more complex rules, create an Outlook rule that moves matching emails into a folder and point the trigger at that folder.

Step 3: Loop through attachments and skip inline images

Every image inside an email signature counts as an attachment. Without a check, your folder fills with logos and social icons.

  1. Add Apply to each and select Attachments from the trigger's dynamic content.
  2. Inside the loop, add a Condition.
  3. Set the left side to the attachment's Is Inline value (or use the expression items('Apply_to_each')?['isInline']), the operator to is equal to, and the right side to false.
  4. Put the save action in the If yes branch. Leave If no empty.

You can add a second condition to skip tiny files, such as anything under 20 KB, which catches remaining logos.

Step 4: Build a dynamic folder path

In the If yes branch, add the SharePoint action Create file.

  • Site Address: choose your SharePoint site.
  • Folder Path: build it with an expression so files go into a monthly folder. Click in the field, choose Expression, and enter:
concat('/Shared Documents/Signed forms/', formatDateTime(utcNow(), 'yyyy-MM'))

SharePoint creates the monthly folder if it does not exist. The SharePoint connector reference lists all actions and parameters if you need another one later.

To save to OneDrive instead, use the OneDrive for Business Create file action with a similar path.

Step 5: Avoid file name conflicts

Two clients will eventually send a file called "scan.pdf" in the same month. Make every name unique.

In File Name, use an expression such as:

concat(formatDateTime(utcNow(), 'yyyyMMdd-HHmmss'), '-', items('Apply_to_each')?['name'])

This produces names like 20261119-143205-scan.pdf. If you want the sender in the name, add the trigger's From value, but replace characters such as @ that look untidy in file names.

For File Content, select the attachment's Content from dynamic content.

Step 6: Test with a dummy folder first

  1. Temporarily set the folder path to a test folder, such as /Shared Documents/Flow test.
  2. Save the flow.
  3. Send three emails to the mailbox: one with a PDF and a signature logo, one with two attachments with the same name, and one without "Signed" in the subject.
  4. Open the flow's Run history. The first two should have succeeded and the third should not have run.
  5. Check the test folder: the PDFs should be there with unique names and no logos.
  6. When everything looks right, change the folder path to the real location and delete the test folder.

Keeping the flow healthy

  • Ownership: add a colleague as co-owner so the flow survives staff changes.
  • Failure alerts: Power Automate emails the owner when a flow fails repeatedly. Do not ignore these.
  • Permissions: the flow saves files with the permissions of the connection's account, so make sure that account can write to the library.
  • Sensitive files: ID scans and contracts contain personal data. Save them to a library with restricted access, not a site everyone can browse.
  • Housekeeping: decide how long files stay in the library and set retention accordingly.

FAQ

Does the flow process emails that arrived before it was created?

No. It only reacts to new emails after it is turned on.

Why do we see attachments called image001.png?

Those are inline images from signatures. Check that the inline condition is in place.

Can one flow handle several types of email?

Yes, with a Switch or several conditions on the subject, but separate flows are easier to maintain.

Do we need a premium licence?

Outlook, SharePoint and OneDrive are standard connectors included with most Microsoft 365 business plans. Check your plan if unsure.

Once this first flow runs reliably, contact us if you want help extending it into approvals, renaming rules or a document register.

Sources

WhatsAppBook a call