Templates / Send staged invoice payment reminders with Microsoft SQL and Gmail

Send staged invoice payment reminders with Microsoft SQL and Gmail

Ready for 3.0

by Prakash Software ✓ · 52 views · created 2026-07-02 · 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 42 nodes and runs on a schedule (every day at 09:00). Along the way it connects Microsoft SQL and Gmail.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Fetch Unpaid Invoices (Microsoft SQL): run a query
  2. Has Unpaid Invoices? (If): checks a condition and branches into true / false
  3. Process Each Invoice (Loop Over Items (Split in Batches)): loops over the items in batches
  4. No Invoices to Process (Edit Fields (Set)): sets 1 field: message
  5. Merge: merges the data from its input branches
  6. Calculate Days Until Due (Date & Time): formats or calculates dates
  7. Aggregate: combines items into one
  8. Route to Reminder Stage (Switch): routes items into 6 branches
  9. Generate Summary Report (Edit Fields (Set)): sets 3 fields: totalProcessed, reportDate, subject
  10. Already Sent 7 Before? (If): checks a condition and branches into true / false

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

Services it uses

Microsoft SQLGmail

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 (11)

From the author

Quick Overview This workflow runs daily at 9 AM to pull unpaid invoices from Microsoft SQL, send staged payment reminder emails via Gmail based on due date timing, update invoice status and an audit log in the database, and email an HTML summary report to the…

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