Odoo icon

Odoo

Consume Odoo API

Actions20

Overview

This node interacts with the Odoo API to perform operations on the Contact resource, specifically the 'Get' operation. It retrieves detailed information about a specific contact by its Contact ID, optionally allowing the user to specify which fields to include in the response. This node is useful for scenarios where you need to fetch contact details from an Odoo system, such as integrating contact data into other workflows or systems.

Use Case Examples

  1. Retrieve a contact's full details by providing the Contact ID.
  2. Fetch specific fields of a contact to minimize data transfer and processing.

Properties

Name Meaning
Contact ID The unique identifier of the contact to retrieve. This is a required field for the 'Get' operation on the Contact resource.
Options Additional options for the 'Get' operation, including the ability to specify which fields of the contact to include in the response.

Output

JSON

  • id - The unique identifier of the retrieved contact.
  • name - The name of the contact.
  • email - The email address of the contact, if available.
  • phone - The phone number of the contact, if available.
  • fieldName - Any other fields requested via the 'Fields To Include' option, representing additional contact details returned by the Odoo API.

Dependencies

  • Requires an Odoo API key credential with URL, username, password, and database name to authenticate and access the Odoo system.

Troubleshooting

  • Ensure the Contact ID provided is valid and exists in the Odoo system to avoid 'not found' errors.
  • Verify that the Odoo API credentials are correct and have sufficient permissions to read contact data.
  • If specifying fields to include, ensure the field names are valid and exist in the Odoo contact model to prevent errors or empty responses.
  • Network connectivity issues to the Odoo server can cause request failures; check network and server status.

Links

Discussion