Sync new email attachment from Gmail to OneDrive

ProductivityDocument/File

What it does

When someone receives a new email with an attachment in Gmail, this automation downloads that attachment and uploads it to OneDrive. Each file is processed and stored so attachments are backed up automatically.

Who it's for

Operations teams who need email attachments saved to OneDrive without manual downloads.

Apps used

How teams use this

Back up client emails automatically

Receive an email with a contract or invoice attachment in Gmail, and have it uploaded to OneDrive instantly. The team accesses all documents from OneDrive without searching through email.

Archive receipts from vendor emails

When a vendor sends an email with a receipt attachment, this automation saves it to OneDrive for accounting records. Finance can reconcile expenses from a central folder instead of email.

Filter attachments by file type

Add a condition to upload only PDF or image attachments to OneDrive, skipping other file types. This keeps the folder organized and reduces clutter from unwanted formats.

How it works

  1. Monitor for new email with attachment. Watch for incoming emails in Gmail that contain one or more attachments so this automation can process each file.
  2. Download each attachment from Gmail. For each attachment found, download the file from Gmail using its attachment ID to prepare it for upload.
  3. Upload to OneDrive. Upload each downloaded file to OneDrive using the file content so attachments are stored in one place.