Odoo icon

Odoo

Consume Odoo API

Actions20

Overview

This node updates a Contact resource in the Odoo system via its API. It is useful for scenarios where you need to modify existing contact information such as address, email, phone, or other personal details stored in Odoo. For example, you can update a contact's address or phone number automatically when new data is received from another system or form submission.

Use Case Examples

  1. Updating a contact's address and phone number in Odoo when a customer updates their profile on a website.
  2. Automatically adding internal notes or job position details to a contact record based on CRM interactions.

Properties

Name Meaning
Contact ID The unique identifier of the contact to update, required to specify which contact record to modify.
Update Fields A collection of fields to update on the contact, including address details (city, country, state, street, street2, zip), email, internal notes, job position, mobile, name, phone, tax ID, and website.

Output

JSON

  • id - The unique identifier of the updated contact.
  • name - The name of the updated contact.
  • email - The email address of the updated contact.
  • phone - The phone number of the updated contact.
  • mobile - The mobile phone number of the updated contact.
  • address
    • city - The city part of the contact's updated address.
    • country_id - The country ID of the contact's updated address.
    • state_id - The state ID of the contact's updated address.
    • street - The street part of the contact's updated address.
    • street2 - The secondary street part of the contact's updated address.
    • zip - The zip code of the contact's updated address.
  • comment - Internal notes or comments related to the contact.
  • function - The job position or function of the contact.
  • vat - The tax ID (VAT) of the contact.
  • website - The website URL of the contact.

Dependencies

  • Odoo API credentials including URL, username, password, and database name

Troubleshooting

  • Ensure that the Contact ID provided exists in the Odoo system; otherwise, the update will fail.
  • Verify that the Odoo API credentials are correct and have sufficient permissions to update contact records.
  • If address fields are provided, they must be structured correctly as a nested object; otherwise, the update may not apply as expected.
  • Common error messages include authentication failures due to invalid credentials and validation errors if required fields are missing or incorrectly formatted.

Links

Discussion