Download KSeF invoices to NocoDB and email formatted HTML copies
Ready for 3.0What this workflow does
This workflow has 32 nodes and runs on a schedule (every 30 days) (plus 1 other trigger). Along the way it connects NocoDB.
How it runs
Trigger: On a schedule (every 30 days) (plus 1 other trigger).
- ⚙️ Config (Edit Fields (Set)): sets or maps fields
- NocoDB Config (Edit Fields (Set)): sets 3 fields: Base ID, NocoDB Url, Table Name
- Get Public Key (HTTP Request): calls an HTTP API
- Create NocoDB KSeF Invoices Table (HTTP Request): calls an HTTP API (POST)
- Get Challenge (HTTP Request): calls an HTTP API (POST)
- Encrypt Token (Code): runs custom JavaScript code
- Init Auth (HTTP Request): calls an HTTP API (POST)
- Wait: pauses before continuing
- Check Auth Status (HTTP Request): calls an HTTP API
- Redeem Token (HTTP Request): calls an HTTP API (POST)
…plus 20 more steps. See the full node list below.
Services it uses
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 (12)
- Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Send Email
n8n-nodes-base.emailSend - Convert to File
n8n-nodes-base.convertToFile - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - XML
n8n-nodes-base.xml - NocoDB
n8n-nodes-base.nocoDb - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Wait
n8n-nodes-base.wait - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
What Is This? This workflow is an improvement of this workflow by Greg Brzezinka. This workflow connects to KSeF (Krajowy System e-Faktur — Poland's national e-invoicing platform) and automatically downloads both issued and received invoices into a NocoDB…