Templates / Upload Gmail invoice and receipt attachments to Lexware Office XL

Upload Gmail invoice and receipt attachments to Lexware Office XL

Ready for 3.0

by Grace M. Hartwell · 0 views · created 2026-11-05 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 9 nodes and runs on Gmail events. Along the way it connects Gmail.

How it runs

Trigger: On Gmail events.

  1. Configuration (Edit Fields (Set)): sets 5 fields: LEXWARE_UPLOAD_URL, RECEIPT_KEYWORDS, REQUIRE_KEYWORD…
  2. Find receipt attachments (Code): runs custom JavaScript code
  3. Upload this file? (If): checks a condition and branches into true / false
  4. Upload to Lexware Office (HTTP Request): calls an HTTP API (POST)
  5. Log result (Code): runs custom JavaScript code
  6. One item per email (Code): runs custom JavaScript code
  7. Explain upload failure (Code): runs custom JavaScript code
  8. Label email as processed (Gmail): add labels (message)

Services it uses

Gmail

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New email with attachment).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (6)

From the author

Quick overview Watches Gmail for receipt and invoice emails, uploads PDF/JPG/PNG attachments to Lexware Office as vouchers, labels successful emails, and logs every file — with a named error branch and readable reasons for failed uploads. How it works 1. Runs…

Excerpt from Grace M. Hartwell'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.