Templates / Archive Outlook email attachments to OneDrive with SharePoint logging

Archive Outlook email attachments to OneDrive with SharePoint logging

Ready for 3.0

by Mychel Garzon ✓ · 246 views · created 2026-05-18 · File Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 16 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects Microsoft Outlook, Microsoft OneDrive and Microsoft SharePoint.

How it runs

Trigger: On a schedule (every hour) (plus 1 other trigger).

  1. Get Unread Emails with Attachments (Microsoft Outlook): get many
  2. Send Error Email (Microsoft Outlook): uses Microsoft Outlook
  3. Has Emails? (If): checks a condition and branches into true / false
  4. Is Upload Error? (If): checks a condition and branches into true / false
  5. Process One Email at a Time (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Log Failed Upload to SharePoint (Microsoft SharePoint): work with list item
  7. Get Email Attachments (Microsoft Outlook): get many (message attachment)
  8. Build Folder Path + Decode Attachment (Code): runs custom JavaScript code
  9. Has File Attachments? (If): checks a condition and branches into true / false
  10. Upload to OneDrive (Microsoft OneDrive): uses Microsoft OneDrive

…plus 3 more steps. See the full node list below.

Services it uses

Microsoft OutlookMicrosoft OneDriveMicrosoft SharePoint

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Stop letting email attachments pile up in your inbox. Let automation file every document the moment it arrives. Manually downloading and organising email attachments is repetitive, inconsistent, and easy to forget. This workflow checks your Outlook inbox…

Excerpt from Mychel Garzon's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.