πŸ“ Automatic Microsoft Outlook attachment storage to OneDrive with Excel logging

⚑ 252 views Β· πŸ“ File Management

Description

πŸ“₯ 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


πŸ§‘β€πŸ’Ό Who this is for

This workflow is ideal for:


βœ… Requirements

Before you run the workflow, you’ll need:


πŸ› οΈ 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

πŸ”— Nodes Used

Microsoft Excel 365, Microsoft OneDrive, Microsoft Teams, Microsoft Outlook, Microsoft Outlook Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup