Skip to main content

Export Odoo company data via API endpoint with JSON/Excel output options

Workflow preview

Workflow preview
100%
Export Odoo company data via API endpoint with JSON/Excel output options preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works This workflow provides an API endpoint that retrieves company records directly from your Odoo database. It’s built for teams who need to query or export company data — either as struct...

Best for

  • CRM automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.function, n8n-nodes-base.odoo, n8n-nodes-base.if, n8n-nodes-base.converttofile, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by V3 Code Studio.

Original n8n.io source

1.1 Workflow description

Title
Export Odoo company data via API endpoint with JSON/Excel output options
Workflow name
Export Odoo company data via API endpoint with JSON/Excel output options

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 (.xlsx) for reporting.

When a request is made, the workflow:

  1. Accepts query parameters (name, response_format).
  2. Validates the name input (required for company search).
  3. Fetches all matching companies from Odoo using a like filter for partial name matches.
  4. Returns results as a JSON response or Excel file depending on the response_format parameter.

This makes it ideal for quickly exporting or syncing company information with other tools.

Setup steps

  1. Open the Webhook node and note the endpoint /api/v1/get-companies.
  2. Connect your Odoo API credentials in the Odoo node.
  3. Optionally update the fieldsList in the Odoo node to include more company details (VAT, address, etc.).
  4. Test using a browser or Postman:
    • /api/v1/get-companies?name=Tech&response_format=json
    • /api/v1/get-companies?name=Tech&response_format=excel

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Receive Company Request

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 2 - Prepare Dynamic Filter

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 3 - Fetch Companies from Odoo

Type / Role
n8n-nodes-base.odoo - odoo
Config choices
Version 1

Block 4 - Prepare Output Data

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 5 - Check If Excel Required

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 6 - Convert to Excel

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 7 - Respond with File

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 8 - Respond with JSON

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 9 - Overview Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Overview Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Overview Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Overview Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Overview Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Overview Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Overview Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Overview Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Overview Note17

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Export Odoo company data via API endpoint with JSON/Excel output options
Complexity advanced
Nodes 18
Categories CRM
Author V3 Code Studio
Published 14 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9653/9653.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Export Odoo company data via API endpoint with JSON/Excel output options do?

How it works This workflow provides an API endpoint that retrieves company records directly from your Odoo database. It’s built for teams who need to query or export company data — either as struct...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM use case.