Odoo Enhanced (PR15676) icon

Odoo Enhanced (PR15676)

Consume Odoo API with enhanced features from PR #15676

Actions6

Overview

This custom node allows users to execute arbitrary methods on a specified custom resource within an external system. It is designed for scenarios where predefined operations are insufficient, and users need flexibility to call any method dynamically with custom arguments. For example, it can be used to invoke specialized API endpoints or perform actions not covered by standard nodes, such as triggering custom workflows, fetching specific data sets, or manipulating resources in unique ways.

Properties

Name Meaning
Custom Resource Name or ID Selects the target custom resource by name or ID on which the method will be executed.
Method Name The exact name of the method to execute on the chosen custom resource.
Method Arguments A list of positional arguments to pass to the method. Each argument can be a string representing numbers, arrays, tuples, or other values.
Method Keyword Arguments A list of keyword arguments (name-value pairs) to pass to the method, allowing more precise control over the method invocation.

Output

The node outputs the result of the executed method in the json field of the output data. The structure of this output depends entirely on the method called and its return value. It may include objects, arrays, or primitive values as returned by the external system's method. If the method returns binary data, it would typically be included in the binary output fields, but this node primarily focuses on JSON responses.

Dependencies

  • Requires connection to an external system that exposes the custom resources and their methods.
  • Needs appropriate authentication credentials configured in n8n to access the external system's API.
  • Relies on internal helper modules (node.description, router, and methods) bundled with the node for loading options and routing execution calls.

Troubleshooting

  • Invalid Method Name: If the specified method does not exist on the custom resource, the node may throw an error indicating the method was not found. Verify the method name spelling and availability.
  • Incorrect Arguments: Passing arguments in an unexpected format or missing required arguments can cause runtime errors. Ensure arguments match the expected types and order.
  • Authentication Issues: Failure to authenticate with the external system will prevent method execution. Check that API keys or tokens are correctly set up.
  • Empty or Unexpected Output: If the method returns no data or data in an unexpected format, verify the method's behavior and parameters.

Links and References

  • n8n Expressions Documentation — for using expressions in property fields.
  • Refer to the external system's API documentation for details on available custom resources, methods, and their arguments.

Discussion