Export Odoo company data via API endpoint with JSON/Excel output options
Needs changesWhat this workflow does
This workflow has 9 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Odoo.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Prepare Dynamic Filter (Function): runs custom JavaScript (legacy Function node)
- Fetch Companies from Odoo (Odoo): get many (custom)
- Prepare Output Data (Function): runs custom JavaScript (legacy Function node)
- Check If Excel Required (If): checks a condition and branches into true / false
- Code: runs custom JavaScript code
- Respond with JSON (Respond to Webhook): sends the response back to the webhook caller
- Convert to Excel (Convert to File): converts data to a file (xlsx)
- Respond with File (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Prepare Dynamic Filter, Prepare Output Data: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Prepare Dynamic Filter, Prepare Output Data | Code node, mode 'Run Once for All Items' |
Nodes used (7)
- Webhook
n8n-nodes-base.webhook - Function
n8n-nodes-base.function - Odoo
n8n-nodes-base.odoo - If
n8n-nodes-base.if - Convert to File
n8n-nodes-base.convertToFile - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code
From the author
How it works This workflow provides an API endpoint /api/v1/get-companies that retrieves company records directly from your Odoo database. It’s built for teams who need to query or export company data — either as structured JSON for integrations or as Excel…