Archive Gmail attachments to Google Drive and Sheets
ProductivitySales EnablementRecipe ToolsDocument/FileDeveloper ToolAPI Integration
What it does
When a new email arrives in Gmail with attachments, this automation downloads each file and uploads it to Google Drive. It then adds a row to Google Sheets so the team has a record of what was stored.
Who it's for
Operations teams who need to archive email attachments and track them in a spreadsheet.
How teams use this
Archive email attachments automatically
Incoming invoices, contracts, or receipts are uploaded to Google Drive without manual download and upload steps. The team spends less time organizing files and more time on work that matters.
Route attachments to a shared folder
Change the Google Drive destination to a team folder instead of My Drive so all attachments land in one shared location. The rest of the flow stays the same.
Filter attachments by file type
Add a condition to only upload PDFs or images, skipping other file types. Include a filter in the attachment loop so only relevant files reach Google Drive.
Track attachment metadata in the sheet
Capture the file name, size, upload timestamp, and sender email in the Sheets row. Set additional columns to record details that help the team search and audit later.
How it works
- Monitor for new email. A new email arrives in Gmail. The automation checks whether it has attachments before proceeding.
- Download and upload each file. For each attachment, the automation downloads it from Gmail and uploads it to Google Drive My Drive so the file is stored in one centralized location.
- Record the attachment in Sheets. A new row is added to Google Sheets with details about the file that was uploaded, creating an audit trail for the team to reference later.