Count Records
Perform Count Records through Odoo.
odoo_count_recordswriteodoo
Inputs
- Model
modelexpressionrequiredRequired literal value or workflow expression.
- Match Fields
match_fieldsjsonOptional JSON value.
- Domain
domainjsonOptional JSON value.
- Include Archived
include_archivedbooleanOptional true-or-false value.
Default:
false - Context
contextjsonOptional JSON value.
Outputs
countCountsuccessSuccesserrorErrorerror_nameError Namestatus_codeStatus 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
{
"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
{
"type": "object",
"properties": {
"count": {},
"error": {},
"success": {},
"error_name": {},
"status_code": {}
},
"additionalProperties": true
}