Skip to main content

Fetch Odoo customer data and export to JSON or Excel

Workflow preview

Workflow preview
100%
Fetch Odoo customer data and export to JSON or Excel preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Odoo Customers API – Export to JSON or Excel Odoo Customers API – Export to JSON or Excel provides a simple way to fetch customer records from your Odoo database and get them back either as a struc...

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.if, n8n-nodes-base.converttofile, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.odoo, 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
Fetch Odoo customer data and export to JSON or Excel
Workflow name
Fetch Odoo customer data and export to JSON or Excel

Odoo Customers API – Export to JSON or Excel

Odoo Customers API – Export to JSON or Excel provides a simple way to fetch customer records from your Odoo database and get them back either as a structured JSON response or a downloadable Excel (.xlsx) file.

⚙️ What it does

  • Listens for HTTP GET requests on the endpoint /api/v1/get-customers.
  • Checks for the required name parameter and builds a search filter automatically.
  • Queries the res.partner model to return only customer contacts (is_company = false).
  • Delivers results in JSON by default, or as an Excel (.xlsx) export when response_format=excel is included.

📥 Parameters

  • name — Required. Used for partial matching on customer names (via Odoo’s Like filter).
  • response_format — Optional. Accepts json (default) or excel.

🔗 Examples

Excel Example

GET /api/v1/get-customers?name=Demo&response_format=excel

JSON Example

GET /api/v1/get-customers?name=Demo&response_format=json

🧩 Default fields

display_name, name, email, phone, mobile, parent_id, company_id, country_code, country_id

🛠️ Setup

  • Open the Odoo node and connect your Odoo API credentials.
  • Adjust the fieldsList in the node if you want to include more data fields (e.g., address, city, or VAT).
  • Trigger the flow from its webhook URL or run it manually inside n8n to test the output.

💡 Notes

  • Built and tested for n8n v1.108.2+

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 Request1

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

Block 2 - Prepare Dynamic Filter1

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

Block 3 - Prepare Output Data1

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

Block 4 - Check If Excel Required1

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

Block 5 - Convert to Excel1

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

Block 6 - Respond with File1

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

Block 7 - Respond with JSON1

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

Block 8 - Overview Note1

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

Block 9 - Fetch Customer

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

Block 10 - Overview Note2

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

Block 11 - Overview Note3

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

Block 12 - Overview Note4

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

Block 13 - Overview Note5

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

Block 14 - Return all data for create binary file

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

Block 15 - Overview Note6

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

Block 16 - Overview Note7

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

Block 17 - Overview Note8

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

Block 18 - Overview Note9

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

3. Summary Table

Workflow Fetch Odoo customer data and export to JSON or Excel
Complexity advanced
Nodes 18
Categories CRM
Author V3 Code Studio
Published 07 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10599/10599.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 Fetch Odoo customer data and export to JSON or Excel do?

Odoo Customers API – Export to JSON or Excel Odoo Customers API – Export to JSON or Excel provides a simple way to fetch customer records from your Odoo database and get them back either as a struc...

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.