Actions21
Overview
This node allows you to delete a Contact in Odoo via the Tameson Odoo integration for n8n. It is useful when you need to automate the removal of contact records from your Odoo system, for example, as part of a data cleanup workflow or when synchronizing contacts between systems and needing to remove obsolete entries.
Practical Example:
- Automatically delete a contact in Odoo when a corresponding record is removed from another CRM.
- Clean up test or duplicate contacts as part of a scheduled maintenance workflow.
Properties
| Name | Type | Meaning |
|---|---|---|
| Contact ID | String | The unique identifier of the contact to be deleted. This is required to perform deletion. |
Output
The output will be a JSON object (or array of objects if multiple items are processed) representing the result of the delete operation. Typically, this may include confirmation of deletion or an empty object, depending on the Odoo API's response. If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message.
Example output:
[
{}
]
Or, in case of error (with "Continue On Fail"):
[
{ "error": "Contact not found" }
]
Dependencies
- Odoo instance: You must have access to an Odoo server.
- API Credentials: Requires valid Odoo API credentials (
url,username,password, and optionallydb). - n8n Credentials: Set up the "odooApi" credential in n8n.
Troubleshooting
Common Issues:
- Invalid Contact ID: If the provided Contact ID does not exist, the node may return an error such as
"Contact not found". - Authentication Errors: If credentials are incorrect or missing, you may see errors like
"Credentials are not valid"or"Settings are not valid". - Connection Issues: Network problems or incorrect Odoo URL can cause connection failures.
How to resolve:
- Double-check the Contact ID is correct and exists in Odoo.
- Verify that the Odoo API credentials are correctly configured in n8n.
- Ensure the Odoo server is reachable from your n8n instance.