Odoo icon

Odoo

Consume Odoo API

Actions20

Overview

This node interacts with the Odoo API to perform operations on the Opportunity resource. Specifically, the 'Get' operation retrieves details of a single Opportunity by its ID, optionally including specified fields. This is useful for workflows that need to fetch detailed information about a specific sales opportunity from Odoo, such as for reporting, updating other systems, or triggering further automation based on opportunity data.

Use Case Examples

  1. Retrieve an Opportunity by its ID to display its details in a dashboard.
  2. Fetch specific fields of an Opportunity to update a CRM system with the latest sales data.

Properties

Name Meaning
Opportunity ID The unique identifier of the Opportunity to retrieve. This is required to specify which Opportunity record to fetch.
Options Additional options for the get operation, including 'Fields To Include' which allows specifying which fields of the Opportunity to retrieve for more tailored data.

Output

JSON

  • id - The unique identifier of the Opportunity.
  • name - The name or title of the Opportunity.
  • fieldName - Any other fields requested via 'Fields To Include' option, representing additional Opportunity data returned by the API.

Dependencies

  • Requires an Odoo API credential with URL, username, password, and database name to authenticate and interact with the Odoo instance.

Troubleshooting

  • Ensure the Opportunity 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 Opportunity data.
  • If specifying fields in 'Fields To Include', ensure the field names are valid for the Opportunity model to prevent errors.

Discussion