Save Gmail Attachments to OneDrive Automatically

"My team uses Gmail, but our work files live in OneDrive."
I've heard this sentence from a dozen small-business owners in the last six months. It's surprisingly common. The split is real and it's annoying.
Email runs on Google Workspace because Gmail's spam filter is unbeatable and the price is right. Files run on OneDrive because Microsoft 365 came bundled with the Surface laptops, or because the bookkeeper wanted Excel, or just because that's where the company's documents have lived since 2018.
Now you want receipts auto-filed. Gmail receipts. Going into OneDrive. By vendor.
Native Microsoft tooling can't help you - Power Automate's Gmail connector is awkward and incomplete. Native Google tooling can't help you either - Drive doesn't talk to OneDrive. You're in the cross-cloud middle, and most receipt-filing tools quietly assume your inbox and your file storage are on the same vendor.
This post is the working setup for the cross-cloud case.
Table of Contents
- Why this combo is more common than it sounds
- Why Power Automate's Gmail connector is awkward
- How AutoFileEmail handles the split
- Where files actually appear in OneDrive
- App folder mode: the privacy benefit of split-cloud
- Setup, end to end
- What about M365 work accounts?
- What this is NOT
- TL;DR
Why this combo is more common than it sounds
There's a stereotype that "Gmail people use Drive, Outlook people use OneDrive." Real life is messier.
The Gmail-on-mail / Microsoft-on-files split shows up most often in:
- Small businesses on Google Workspace email but Microsoft 365 Business for Office. The bookkeeper insisted on Excel. The CFO wanted SharePoint. Email stayed on Workspace because nobody wanted to migrate aliases.
- Solo founders who started on personal Gmail and bought a Surface laptop. OneDrive came pre-installed. They never moved off it.
- Agencies sharing files with enterprise clients. Client uses OneDrive. You have to too. But your own email is on Gmail because that's just where it's been forever.
- Founders who use Gmail for inbound (better spam filtering) and OneDrive for outbound (clients send Word docs, not Google Docs).
In all four cases, receipts hit Gmail and the bookkeeper wants them in OneDrive. The bridge is what's missing.

Why Power Automate's Gmail connector is awkward
Microsoft's Power Automate has a Gmail connector. You'd think this solves it.
It mostly doesn't, for a few reasons:
- It's a Premium-tier connector. Gmail is "Premium" in Power Automate's pricing model, which means you need a paid Power Automate license. Starts at $15/user/month for the per-user plan. More than AutoFileEmail Pro will be.
- The trigger polls slowly. Power Automate's Gmail trigger fires on a schedule, not a push notification. Default poll is every 3 minutes; high-volume tiers go to 1 minute. Real Gmail push (via Pub/Sub) isn't supported.
- No domain routing out of the box. Same story as Outlook + OneDrive. The default template dumps everything into one folder. Vendor folders require custom expressions, nested
if()statements to strip subdomains, and hand-coded month/year formatting. - OAuth gets messy. You're authenticating Microsoft (to run Power Automate) AND Google (to read Gmail). When either token expires, the flow silently breaks. You don't know until tax time when receipts stop showing up.
For "wire up one specific sender to one specific folder," it works. For "all receipts, all vendors, all months, organized," it falls apart fast.

How AutoFileEmail handles the split
The split-cloud case is exactly what we built for.
AutoFileEmail's onboarding lets you pick any inbox and any cloud independently:
- Inbox tile: Gmail, Outlook, IMAP
- Cloud tile: Google Drive, OneDrive, Dropbox
Pick Gmail. Pick OneDrive. The product treats them as separate OAuth flows with separate consent screens.
You'll see two windows during onboarding:
- Google sign-in window for Gmail. Approve Gmail's read scope (read mail and download attachments).
- Microsoft sign-in window for OneDrive. Approve
Files.ReadWrite.AppFolder(read/write only inside/Apps/AutoFileEmail/).
Two minutes, two consent screens, done. AutoFileEmail polls Gmail every 30 seconds. New attachments file into OneDrive at /Apps/AutoFileEmail/{vendor-domain}/{YYYY}/{MM}/.
For the cross-cloud user, this is the whole story. The product abstracts away the fact that your email is on one vendor and your files are on another.

Where files actually appear in OneDrive
Open OneDrive on the web. Click "My files" in the left nav. Scroll to the Apps folder. Inside it, AutoFileEmail. That's our sandbox.
Inside /Apps/AutoFileEmail/, after a couple of weeks of filing:
One folder per registrable sender domain. Year and month subfolders. Original filenames, prefixed by the email date so they sort cleanly.
Same structure as Gmail+Drive, same structure as Outlook+OneDrive. If you ever switch any leg of the stack, your accountant doesn't have to learn anything new.

App folder mode: the privacy benefit of split-cloud
The OneDrive scope we ask for - Files.ReadWrite.AppFolder - is the narrowest one Microsoft offers. We can read and write inside /Apps/AutoFileEmail/. We literally cannot see anything else in your OneDrive. The Graph API refuses if we try.
For the cross-cloud user, this is a real privacy upgrade. Your work files in OneDrive are visible only to your work tools and the people you've shared them with. AutoFileEmail isn't on the list. We don't have access to read them, list them, or even know they exist.
Same pattern on the Gmail side. We ask for the read-only Gmail scope. We don't ask for gmail.send or gmail.modify. We can read mail and download attachments. We can't reply, forward, mark as read, or change anything in your inbox.
If your IT department or your clients have asked you not to give third parties broad access to either cloud, this scope footprint usually clears the bar without much pushback. For the same reason we don't OCR your receipts, the App folder scope is the only OneDrive scope we want - smallest blast radius if a token ever leaks.

Setup, end to end
Click-by-click for the Gmail + OneDrive combo:
- Sign up at autofile.email. Pick Google sign-in or magic email.
- Click "Connect Gmail." Google consent screen. Approve Gmail read access.
- Click "Connect OneDrive." Microsoft consent screen. Approve
Files.ReadWrite.AppFolderandUser.Read. - Done. AutoFileEmail starts polling within 30 seconds.
If you signed up today, the 30-day historical preview backfill kicks off automatically. April's receipts populate in OneDrive within a few minutes.
If you want a full tax year filed, the $29 Tax Year Pack covers it. One-time. No subscription. Backfill runs in the background.
Full integration walkthrough at /integrations/gmail-onedrive.
What about M365 work accounts?
If your OneDrive is connected to a Microsoft 365 work tenant (yourname@yourcompany.com), there's an extra step: many enterprise tenants block third-party apps. The consent screen will say "Approval required" and the connection fails until your IT admin grants consent.
The scopes we ask for are narrower than what Power Automate, Zapier, or any OCR-based receipt tool would request. Files.ReadWrite.AppFolder reads as "Have full access to the application's folder" on the consent screen, which is accurate - we have full access to OUR folder, no access to anything else.
Most IT teams approve this without much fuss. If you're a solo founder running your own single-user tenant, you're the admin; the extra screen is just a checkbox during onboarding.
What this is NOT
A few things worth being explicit about:
- Not OCR. The PDF in OneDrive is the same PDF Stripe sent. We don't parse line items. Your accountant's software does that better.
- Not a "scan once and discard" service. The original attachments stay in your inbox. We just copy them.
- Not subscription-billed for new mail. Free tier files unlimited new attachments going forward. The only paid product is Backfill Packs (one-time, $29 / $59 / $99).
- Not multi-cloud at once on free tier. One inbox + one cloud per account. Pro (5 inboxes, custom destinations, $14.99/mo, coming soon) handles multi-cloud per user.
For a deeper take on why we'll never charge per email scanned, see the Outlook + OneDrive freelancer's filing setup - same logic applies to the cross-cloud case.
TL;DR
- Gmail + OneDrive is a real-world combo for plenty of small businesses, agencies, and solo founders.
- Power Automate's Gmail connector is Premium-only ($15/user/mo+), polls slowly, and doesn't do vendor-domain routing without custom expressions.
- AutoFileEmail's onboarding treats inbox and cloud as independent OAuth flows. Two consent screens, files land under
/Apps/AutoFileEmail/{vendor}/{YYYY}/{MM}/in OneDrive. - App folder mode means we cannot see anything else in your OneDrive. Gmail read-only means we can't change anything in your inbox.
- Free for one inbox + one cloud. The $29 Tax Year Pack covers retroactive filing.
Free for one inbox + one cloud, no credit card. 30-day historical preview included. Connect Gmail and OneDrive in two minutes and watch your inbox stop being a tax-time emergency.
We don't read your receipts. We just file them.
The last time you'll dread tax season.
Connect Gmail and Drive, watch the 30-day preview file itself, and never think about new email attachments again. Forward filing is free, forever. When tax season comes, grab a Backfill Pack and we'll sweep the rest of your history.