OOps icon

OOps

Interact with OOps — the N2 ITSM suite on Odoo

Task → Get Many

AI-generated

Summary

Searches and reads multiple Task records from an Odoo ITSM instance using a domain filter.

Inputs

  • domain (required) — Odoo search domain as JSON. Example: [["state","=","new"]].
  • fields — Comma-separated list of fields to return. Leave empty for all fields.
  • limit — Max number of results to return. Default is 50.
  • offset — Number of records to skip. Default is 0.
  • order — Odoo order clause, e.g. "create_date desc". Leave empty for the model default.

Output shape

a list of items, each containing a JSON object with the fields specified (or all fields).

The operation uses Odoo's search_read method, which returns a flat list of records. Returns empty array if no matching records are found.

Examples

Example 1: Find all pending tasks assigned to a specific user

Domain: [["assignee_id","=",123]], Fields: name,state,assignee_id

Example 2: Retrieve the first 10 completed tasks ordered by creation date

Domain: [["state","=","done"]], Limit: 10, Order: create_date desc

Links

Discussion