# Count Records

> Perform Count Records through Odoo.

Source: [https://genhealth.ai/docs/workflows/integrations/odoo/odoo_count_records](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_count_records)

Integration: [Odoo](https://genhealth.ai/docs/workflows/integrations/odoo.md)

- Handler: `odoo_count_records`

- Connection type: `odoo`

## Inputs

- `model` — Model (expression, required)
  Required literal value or workflow expression.
- `match_fields` — Match Fields (json)
  Optional JSON value.
- `domain` — Domain (json)
  Optional JSON value.
- `include_archived` — Include Archived (boolean)
  Optional true-or-false value.
  Default: `false`
- `context` — Context (json)
  Optional JSON value.

## Outputs

- `count` — Count
- `success` — Success
- `error` — Error
- `error_name` — Error Name
- `status_code` — Status Code

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "model"
  ],
  "properties": {
    "model": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "domain": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "match_fields": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "include_archived": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "success": {},
    "error_name": {},
    "status_code": {}
  },
  "additionalProperties": true
}
```
