Every invoice, receipt and contract that lands in your Gmail deserves to be filed somewhere safer than an inbox — and you deserve to never drag another attachment into a folder by hand. This tutorial builds the whole thing on free tiers: Pabbly Connect watches your Gmail and files every attachment into OneDrive automatically. Fifteen minutes of setup, zero dollars a month, no code.

Quick disclosure: the Pabbly links below are affiliate links. The setup itself runs entirely on Pabbly's free plan — you don't need to buy anything for this tutorial to work, and I'd rather you didn't until you've outgrown free. (If you're a Google Drive household instead, our Gmail-to-Drive tutorial covers the same job with n8n.)

The short version

Create a free Pabbly Connect account, build a two-step workflow — trigger: new Gmail email with an attachment → action: upload the file to a OneDrive folder — test it with a real email, turn it on. The free plan's 100 tasks/month covers about 100 attachment emails because triggers don't count as tasks. OneDrive's free 5 GB holds years of invoices.

What you're building (and what it costs)

The workflow is deliberately boring: an email with an attachment arrives, the file appears in OneDrive a few minutes later. Two things make it free indefinitely rather than free-ish:

  • Pabbly counts only action steps as tasks. The Gmail trigger is free; each run costs 1 task (the OneDrive upload). The free plan's 100 tasks/month therefore covers roughly 100 attachment emails — see our free-plan deep dive for the exact math.
  • OneDrive's free tier includes 5 GB. Most invoices and receipts are PDFs well under 1 MB, so 5 GB is years of runway for a typical inbox.

One honest timing note: the Gmail trigger is polling-based, so files land in OneDrive a few minutes after the email arrives, not instantly. For bookkeeping documents that's irrelevant; just don't build a "fire alarm" on it.

Step 1: Create the free Pabbly Connect account

Sign up at Pabbly Connect — the free plan needs no credit card. Once inside the dashboard, click Create Workflow, name it something you'll recognize at a glance six months from now ("Gmail receipts → OneDrive"), and you're in the builder.

Step 2: Set the Gmail trigger

Choose Gmail as the trigger app and pick the new-email trigger. Connect your Google account when prompted — Pabbly uses Google's official sign-in, so your password never touches Pabbly. Now the important part: don't trigger on every email. Add Gmail's search operators so only the right mail fires the workflow:

  • has:attachment — the bare minimum; every email with a file.
  • has:attachment filename:pdf — documents only, skips image signatures.
  • has:attachment from:(your-vendor.com) — one sender only, e.g. your bookkeeping platform.

Tighter filters mean fewer wasted tasks and a cleaner OneDrive folder. Start with has:attachment; refine after a week of watching what lands.

Step 3: Set the OneDrive action

Add an action step, choose Microsoft OneDrive, pick the upload file action, and connect your Microsoft account. Create a dedicated folder first (I use Gmail Attachments) so the workflow isn't dumping files into your root. Map the attachment data from the Gmail step into the file fields — the builder shows the Gmail step's outputs (filename, file content) as clickable pills, so this is drag-and-drop, not typing. Set the filename to keep the original name; if you expect collisions, prefix it with the email's received date field.

Step 4: Test with a real email, then switch it on

Send yourself an email with a PDF attached, hit the workflow's test/capture button, and wait a few minutes for the poll to pick it up. You should see the file appear in your OneDrive folder with its original name. If it does, save and enable the workflow — done. You never have to think about it again, except the quarterly five-minute folder clean-out.

When it misbehaves: the troubleshooting table

Every problem I hit or have been asked about, and the fix.
Symptom Cause Fix
Nothing arrives in OneDrive Workflow not enabled, or the Gmail filter matches nothing Check the toggle is on; test your search operators directly in Gmail's search bar first
Files arrive late Gmail trigger polls every few minutes — it's not instant Normal behavior; nothing to fix
Free tasks run out mid-month Emails with multiple attachments cost one task per file upload Tighten the filter (sender or filename:pdf), or it's genuinely time for a paid plan
Same filename keeps overwriting Vendors love sending "invoice.pdf" every month Prefix the filename with the email date field in the OneDrive step
Image signatures cluttering the folder Logos in email signatures count as attachments Add filename:pdf (or your real file type) to the filter

When the free plan stops being enough

The rule of thumb from our free-plan testing: if your tasks run dry before the 25th of the month two months in a row, upgrade. That's a sign the automation is earning its keep, and Pabbly's paid plans are cheap by industry standards. And if your filing needs grow past a straight line — "invoices to OneDrive, contracts to SharePoint, everything else logged to a sheet" — that's the moment to learn how routers and webhooks work, which turns this same workflow into a proper document pipeline.

Ready to build it? The free plan is 100 tasks a month, no credit card — enough for this workflow with room to spare for a second one.

Create the free Pabbly account →

Our verdict

Fifteen minutes once, then your attachments file themselves forever — for $0. The Gmail-to-OneDrive pipeline is the single highest-value first automation for anyone drowning in invoices, and the free tiers of Pabbly Connect and OneDrive cover it completely.

Build it today, watch it for a week, tighten the filter, and enjoy the small but real pleasure of never manually filing a receipt again.

Start the free plan →

Frequently asked questions

Can I do this for free? Yes — Pabbly Connect's free plan (100 tasks/month, no card) covers roughly 100 attachment emails, since only the OneDrive upload step counts as a task. OneDrive's free 5 GB holds years of typical documents.

How fast is it? The Gmail trigger polls every few minutes, so files appear shortly after the email arrives — not instantly, but fast enough for invoices and receipts.

How much OneDrive storage do I need? The free 5 GB is years of runway for PDFs under 1 MB. If you archive large files, filter by sender or file type, or clean the folder quarterly.

What about Google Drive instead? Identical logic, different destination app — we have a separate tutorial for the Drive version.

Does it handle multiple attachments? Yes — each file uploads separately. Watch out: each upload costs a task, so heavy multi-attachment emails burn the free allowance faster.

The Pabbly links on this page are affiliate links — if you sign up through them we may earn a commission at no extra cost to you. The tutorial itself runs entirely on the free plan. Read our affiliate disclosure. Plan limits checked August 2026 on Pabbly's and Microsoft's official pages. Also read: what the free plan's 100 tasks actually cover, the Google Drive version, and webhooks explained.