Templates / Archive last month’s invoice tab with Google Sheets and Google Drive

Archive last month’s invoice tab with Google Sheets and Google Drive

Ready for 3.0

by Incrementors ✓ · 1 views · created 2026-08-24 · Invoice Processing

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 22 nodes and runs on a schedule (every month at 06:00). Along the way it connects Google Drive and Gmail. It also calls sheets.googleapis.com over HTTP.

How it runs

Trigger: On a schedule (every month at 06:00).

  1. Set config (Edit Fields (Set)): sets 6 fields: sourceSpreadsheetId, archiveParentFolderId, archiveSuffix…
  2. Work out last month (Code): runs custom JavaScript code
  3. Look for the month folder (Google Drive): work with file folder
  4. Folder exists? (If): checks a condition and branches into true / false
  5. Use that folder (Merge): merges the data from its input branches
  6. Create the month folder (Google Drive): work with folder
  7. Look for an existing archive (Google Drive): work with file folder
  8. Already archived? (If): checks a condition and branches into true / false
  9. Get every tab in the sheet (HTTP Request): calls an HTTP API
  10. Find last month's tab (Code): runs custom JavaScript code

…plus 10 more steps. See the full node list below.

Services it uses

Google DriveGmail

HTTP calls to: sheets.googleapis.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Quick overview This workflow runs monthly to archive last month’s invoice tab from a Google Sheets workbook into a new spreadsheet created in the matching Google Drive month folder, then renames the copied tab for accounting. How it works 1. Runs on a monthly…

Excerpt from Incrementors'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.