Back to Templates
⚠️ Notice:
This workflow uses the CustomJS Invoice Generator node from customjs.space, which requires a self-hosted n8n instance and a CustomJS API key.
This workflow demonstrates how to:
When clicking ‘Execute workflow’
(Manual Trigger)Get Ready Invoices
(Airtable)Status = 'Ready'
.Loop Over Items
(Split In Batches)Get Clients
(Airtable)Get Invoice Items
(Airtable)Map Fields
(Set)Aggregate
Set Company Details
(Set)Generate Invoice
(CustomJS Invoice Generator)Node: Send Email With Attachment
(Email Send)
Sends the generated invoice PDF to the client:
From: {{ $json.InvoiceEmail }}
Subject: Your Invoice for Last Month
Body Text:
Hello,
Please find attached your invoice for the last month. Thank you very much for your cooperation.
Best regards,
Henrik
Uses SMTP credentials for sending emails.
Update record
(Airtable)Sent
in Airtable.