Templates / Upload invoices from Gmail to Google Drive

Upload invoices from Gmail to Google Drive

Needs changes

by Jason · 4,728 views · created 2022-04-12 · Invoice Processing

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Drive, Gmail and Slack.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Orlen Invoice (Gmail): get many (message)
  2. Merge: merges the data from its input branches
  3. Upload Invoice to Google Drive (Google Drive): uses Google Drive
  4. Mark as Read (Gmail): remove (message label)
  5. Slack: uses Slack
  6. Current date (Function): runs custom JavaScript (legacy Function node)
  7. Get Year folder (Google Drive): list
  8. Get Month folder (Google Drive): list

Services it uses

Google DriveGmailSlack

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Current date: replace with Code node, mode 'Run Once for All Items'.
  • Cron in Every 23:45: replace with Schedule Trigger.
Removed in 3.0Replace with
Function (legacy)
Current date
Code node, mode 'Run Once for All Items'
Cron
Every 23:45
Schedule Trigger

Nodes used (7)

From the author

Upload invoices from Gmail to Google Drive daily

Excerpt from Jason's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.