Create or Update Record
Perform Create or Update Record through Odoo.
odoo_upsert_recordwriteodoo
Inputs
- Model
modelexpressionrequiredRequired literal value or workflow expression.
- Match Fields
match_fieldsjsonrequiredRequired JSON value.
- Domain
domainjsonOptional JSON value.
- Values
valuesjsonrequiredRequired JSON value.
- Resolve Names
resolve_namesbooleanOptional true-or-false value.
Default:
true - Fields
fieldsexpressionOptional literal value or workflow expression.
- Include Archived
include_archivedbooleanOptional true-or-false value.
Default:
false - Context
contextjsonOptional JSON value.
Outputs
record_idRecord IdrecordRecordsuccessSuccesserrorErrorerror_nameError Namestatus_codeStatus CodecreatedCreatedupdatedUpdatedmatch_countMatch Countmatch_record_idsMatch Record Ids
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",
"match_fields",
"values"
],
"properties": {
"model": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"domain": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"fields": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"values": {
"description": "Required JSON value.",
"x-workflow-field-type": "json"
},
"context": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"match_fields": {
"description": "Required JSON value.",
"x-workflow-field-type": "json"
},
"resolve_names": {
"type": "boolean",
"default": true,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"include_archived": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"record": {},
"created": {},
"success": {},
"updated": {},
"record_id": {},
"error_name": {},
"match_count": {},
"status_code": {},
"match_record_ids": {}
},
"additionalProperties": true
}