Count Xero invoices, bills, and credit notes with a voided/deleted filter
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.xero.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Count Options (Edit Fields (Set)): sets 1 field: includeVoidedDeleted
- Get Connections (HTTP Request): calls api.xero.com
- Count Sales Invoices (HTTP Request): calls api.xero.com
- Count Bills (HTTP Request): calls api.xero.com
- Count Sales Credit Notes (HTTP Request): calls api.xero.com
- Count Bill Credit Notes (HTTP Request): calls api.xero.com
- Tally Sales Invoices (Code): runs custom JavaScript code
- Tally Bills (Code): runs custom JavaScript code
- Tally Sales Credit Notes (Code): runs custom JavaScript code
- Tally Bill Credit Notes (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
HTTP calls to: api.xero.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 (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow runs on manual execution to count Xero Accounting records: sales invoices, bills, and sales/bill credit notes; with an optional filter to exclude VOIDED and DELETED statuses, returning a simple tally per record type. How it works…