SharePoint  

How to Automatically Saving Email Attachments to SharePoint and Sending Notifications

Introduction

Automatically saving email attachments to Microsoft SharePoint and sending notifications through Microsoft Outlook or Microsoft Teams helps streamline document management and improve team collaboration. By using Microsoft Power Automate, attachments from incoming emails can be automatically uploaded to a SharePoint library, while relevant team members receive instant notifications. This reduces manual work, prevents lost files, and ensures important documents are stored and shared efficiently.

Scenario

Imagine you receive invoices via email daily. Instead of manually downloading and storing each attachment, you can automate the process.

Goal:

  • When a new email arrives with an attachment

  • Save the attachment to SharePoint Library folder

  • Send a notification confirming the file was saved

Power Automate Flow

1

Step 1: Create a New Flow

  1. Log in to Power Automate.

  2. Click Create.

  3. Select Automated Cloud Flow.

  4. Name your flow: Save Email Attachments Automatically.

  5. Choose the trigger: When a new email arrives in a shared mailbox (V2)

2

Step 2: Configure the Trigger

3
  • Folder: Inbox

  • Include Attachments: Yes

  • Only with Attachments: Yes

This ensures the flow runs only when an email contains attachments.

Step 3: Add Action – Save Attachment

4
  1. Click New Step.

  2. Choose Create file (SharePoint).

  3. Add “Apply to Each” (For Multiple Attachments)

    Because emails may contain multiple attachments:

    1. Add Apply to each.

    2. Select Attachments from dynamic content.

    If multiple attachments are expected, Power Automate automatically applies a loop.

  4. Configure:

    • Site Address: Select your SharePoint site.

    • Folder Path: /Invoices

    • File Name: Attachment Name

    • File Content: Attachment Content

Step 4: Add Notification

5

You can add:

Action : Send an email from a shared mailbox (V2)

  • Send an email confirmation

Example message:

"A new invoice has been saved to the Invoices folder in document library"

Step 5: Save and Test

  1. Click Save.

  2. Send a test email with an attachment.

  3. Verify:

    • The file appears in SharePoint Document Library Folder.

    • You receive a notification.

Benefits of This Automation

✅ Saves time

✅ Reduces manual errors

✅ Ensures organized file storage

✅ Improves productivity

🔎 Optional Enhancements

  • Create subfolders automatically by date.

  • Rename files using timestamp.

  • Prevent duplicate files.

  • Save only PDF or Excel attachments.

  • Add approval workflow before saving.

Real-World Use Cases

  • HR document processing

  • Invoice management

  • Form response tracking

  • Automated approvals

  • Social media posting

Conclusion

Microsoft Power Automate makes business automation simple and accessible. Even basic flows like saving email attachments can eliminate repetitive work and allow teams to focus on more strategic tasks.

Whether you're a beginner or an advanced user, automation can significantly improve your workflow efficiency.