Skip to main content

Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging

Workflow preview

Workflow preview
100%
Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Save Email Attachments to OneDrive & Log Them in Excel This workflow watches your Outlook inbox, automatically downloads file attachments (for example invoices), saves them into a specific OneDr...

Best for

  • File Management automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.microsoftoutlook, n8n-nodes-base.microsoftonedrive, n8n-nodes-base.microsoftexcel, n8n-nodes-base.splitinbatches, n8n-nodes-base.set, n8n-nodes-base.microsoftoutlooktrigger, n8n-nodes-base.microsoftteams, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by plemeo.

Original n8n.io source

1.1 Workflow description

Title
Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging
Workflow name
Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging

📥 Save Email Attachments to OneDrive & Log Them in Excel

This workflow watches your Outlook inbox, automatically downloads file attachments (for example invoices), saves them into a specific OneDrive folder, and logs each file name into an Excel table. Optionally, it also posts a Microsoft Teams message to let you know that a new attachment has been processed.


✨ What this workflow does

  • Monitors a Microsoft Outlook mailbox for new emails.
  • Fetches all attachments from each incoming message.
  • Processes attachments one by one so every file is handled cleanly.
  • Downloads each attachment as binary data.
  • Uploads the file into a OneDrive folder (looked up by name).
  • Appends a new row with the filename to an Excel table for tracking.
  • Sends a Teams chat notification once an attachment has been uploaded (optional).

🧑‍💼 Who this is for

This workflow is ideal for:

  • Finance / accounting teams who receive invoices by email and want them stored centrally.
  • Anyone who wants an “email → OneDrive → Excel log” pipeline without manual downloading and renaming.
  • n8n users who work in a Microsoft 365 environment (Outlook, OneDrive, Excel, Teams).

âś… Requirements

Before you run the workflow, you’ll need:

  • A Microsoft Outlook account with permissions to read emails and attachments.
  • A OneDrive / SharePoint drive with a target folder (the example uses a folder whose name matches the search in the Get Folder ID node, e.g. Testn8n).
  • An Excel workbook stored in OneDrive with:
    • A worksheet and table already created.
    • A column named Filename (or adjust the Set Filename + Excel node to match your column name).
  • n8n credentials set up for:
    • Microsoft Outlook
    • Microsoft OneDrive
    • Microsoft Excel
    • Microsoft Teams (optional but used in this template)

🛠️ Setup steps

  1. Import the workflow JSON into your n8n instance.
  2. Configure credentials:
    • Set your Outlook, OneDrive, Excel, and Teams credentials on the respective nodes.
  3. Adjust the mail trigger (On Mail Received):
    • Optionally add filters (subject, sender, folder) if you only want to process invoices or a specific mailbox/folder.
  4. Set the OneDrive folder search (Get Folder ID):
    • Update the query parameter to the exact name of the folder where attachments should be stored.
  5. Point the Excel node to your workbook (Append to Excel Log):
    • Use the dropdowns to select your workbook, worksheet and table.
    • Ensure there’s a Filename column (or rename the field in Set Filename to match your actual column).
  6. Activate the workflow:
    • Once active, every new email that hits the trigger will have its attachments stored in OneDrive and logged in Excel.

đź”— Integrations used

  • Microsoft Outlook – trigger on incoming emails and download attachments.
  • Microsoft OneDrive – search for folders and upload files.
  • Microsoft Excel – append rows to a table in a workbook.
  • Microsoft Teams – send notifications when attachments are processed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get Attachments

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 1

Block 2 - Upload to OneDrive

Type / Role
n8n-nodes-base.microsoftOneDrive - microsoftOneDrive
Config choices
Version 1

Block 3 - Append to Excel Log

Type / Role
n8n-nodes-base.microsoftExcel - microsoftExcel
Config choices
Version 1

Block 4 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Get Message ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - On Mail Received

Type / Role
n8n-nodes-base.microsoftOutlookTrigger - microsoftOutlookTrigger
Config choices
Version 1

Block 7 - Notify User

Type / Role
n8n-nodes-base.microsoftTeams - microsoftTeams
Config choices
Version 1

Block 8 - Get Folder ID

Type / Role
n8n-nodes-base.microsoftOneDrive - microsoftOneDrive
Config choices
Version 1

Block 9 - Download Attachment

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

Block 10 - Set Filename

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging
Complexity intermediate
Nodes 14
Categories File Management
Author plemeo
Published 07 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10602/10602.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging do?

Save Email Attachments to OneDrive & Log Them in Excel This workflow watches your Outlook inbox, automatically downloads file attachments (for example invoices), saves them into a specific OneDr...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.