Actions21
Overview
The Odoo Node for n8n allows you to interact with the Odoo API, specifically targeting the "Note" resource in this context. The Get operation retrieves a specific note from your Odoo instance by its ID. This is useful for automating workflows that need to fetch and process notes stored in Odoo, such as extracting information for reporting, synchronizing notes with other systems, or triggering actions based on note content.
Practical examples:
- Retrieve a note by its ID to display its details in a dashboard.
- Fetch a note's data to include in an automated email or notification.
- Use note content as input for further processing or decision-making in your workflow.
Properties
Name | Meaning |
---|---|
Note ID | The unique identifier of the note you want to retrieve. This is required. |
Options | Additional options for the request. Contains: • Fields to Include: Select which fields of the note to return. You can choose from a list or specify field IDs using an expression. |
Output
- The output will be a JSON object representing the requested note.
- The structure of the output depends on the fields selected in "Fields to Include". By default, it includes all standard fields of the note if no specific fields are chosen.
- Example output (fields may vary depending on your selection):
{
"id": 123,
"memo": "This is a sample note",
"create_date": "2024-06-01T12:34:56Z",
"user_id": 45
}
- If an error occurs and "Continue On Fail" is enabled, the output will contain an
error
field with the error message.
Dependencies
- Odoo API: Requires access to an Odoo instance with valid credentials (URL, username, password, and 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.
- Note not found: If the provided Note ID does not exist, the node may return an empty result or an error.
- Missing permissions: The user account used must have permission to read notes in Odoo.
Error messages:
"Credentials are not valid"
: Check your Odoo API credentials."Settings are not valid: ..."
: There may be a configuration issue; verify all credential fields."error": "<message>"
in output: Indicates a runtime error for that item; review the message for details.