All workflows
Gmail logoGoogle Drive logo

File email attachments into Google Drive

Saves the attachments from senders you nominate into a Google Drive folder, and labels the mail so nothing is filed twice.

Every hour2 apps4 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. For each sender

    1. 1GmailFind emailFinds each sender's latest email with attachments, and checks whether that same email already carries the filed label.
    2. 2GmailDownload attachmentsDownloads every attachment from the sender's most recent email, keeping each file's name and type.
    3. For each attachment

      1. 3Google DriveUpload fileUploads each attachment into your chosen Drive folder with its original file type, collecting the link for the run report.
    4. If savedFromSender is more than 0

      1. 4GmailAdd label to messageLabels the email 'Filed to Drive' once its attachments are saved, so the next run skips it.

How it works

What happens on each run, in plain English.

Every hour, for each sender you nominate, the workflow finds their most recent email with attachments and saves every attachment into a Google Drive folder you choose. Invoices, signed contracts and statements stop sitting in the inbox and land in one folder, each keeping its own file type, so a PDF arrives as a PDF and a spreadsheet as a spreadsheet.

Once an email's attachments are saved, the email is labelled 'Filed to Drive' and later runs check for that label before downloading anything, so the same attachments are never filed twice. A sender whose search fails, an attachment that will not upload or a folder the account cannot write to is reported and skipped, and the other senders still go through. Every run ends with a list of what was filed and a link to each file.

It takes each sender's latest message rather than working through a backlog, so running hourly keeps pace with mail as it arrives. All you need is a Drive folder to file into.

gmailgoogle driveattachmentsinvoicesfilingdocumentshourly

Start from a workflow that already works.

Add "File email attachments into Google Drive" to your workspace, connect its apps, and make it yours.

Free plan, no credit card