Actions21
Overview
The Tameson Odoo node for n8n allows you to interact with the Odoo API, specifically targeting various resources such as Contacts, Opportunities, Notes, and Custom Resources.
For the Contact → Get operation, this node retrieves detailed information about a specific contact from your Odoo instance using its unique Contact ID. This is useful in scenarios where you need to fetch up-to-date contact details for use in automations, reporting, or integration with other systems.
Practical examples:
- Retrieve a contact's full profile before sending them an email.
- Fetch contact data to synchronize with another CRM or marketing tool.
- Display contact details in a dashboard or report.
Properties
| Name | Type | Meaning |
|---|---|---|
| Contact ID | String (text) | The unique identifier of the contact to retrieve. Required. |
| Options | Collection | Additional options for the request. |
| └ Fields to Include | Multi-Options | List of specific fields to include in the response. If left empty, default fields are returned. |
Output
- The output is a JSON object containing the contact's details as retrieved from Odoo.
- The structure of the output depends on the fields selected in "Fields to Include". If no fields are specified, all default fields for the contact will be included.
- Example output (fields may vary):
{
"id": 123,
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890"
}
- If an error occurs and "Continue On Fail" is enabled, the output will contain an
errorfield with the error message.
Dependencies
- Odoo API: Requires access to an Odoo instance with valid credentials (URL, username, password, database name).
- n8n Credentials: You must configure Odoo API credentials in n8n under the name
odooApi.
Troubleshooting
Common issues:
- Invalid Credentials: If the Odoo credentials are incorrect, authentication will fail. Ensure the URL, username, password, and database name are correct.
- Contact Not Found: If the provided Contact ID does not exist, the node may return an empty result or an error.
- Field Selection Errors: Specifying invalid or misspelled field names in "Fields to Include" may cause errors or missing data in the output.
Error messages:
"Credentials are not valid": Check your Odoo credentials."Settings are not valid: ...": There may be a configuration issue; verify all credential fields."Cannot read property '...' of undefined": Likely due to an incorrect Contact ID or missing fields.