Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Supply/Production → OperationTypeUpdate

AI-generated

Summary

Executor reads resource and operation from item parameters. Resolves handler via operations[resource][operation] and getOperationHandler. Handler from createHandler processes the body and item data. If handler returns array, each element becomes an output item with json field. Single non-undefined result produces one item. Undefined produces none. Errors thrown unless continueOnFail is set, in which case error json is emitted.

Inputs

  • supply_production_operationTypeUpdate_bodyJson (required) — JSON body for the operation type update. Declared fields: id (integer), productionProfile (object), code (string*), tags (string), properties (object). Type is collection with json subtype. Default is empty object {} shown when operation parameter matches /supply/production/operationTypeUpdate.

Output shape

Array of items. Each item contains a json field with the handler's result. If the handler returns an array, multiple items are emitted; if a single non-undefined value, one item is emitted; if undefined, no item is produced for that execution cycle.

Behavior is determined by the handler returned from getOperationHandler(target). The node's execute method wraps results into main output items with json and pairedItem properties.

Examples

Example 1: Update operation type in Zen ERP Supply/Production module.

Set resource to Supply/Production, operation to OperationTypeUpdate, and provide a JSON body via supply_production_operationTypeUpdate_bodyJson containing at minimum the id field and any combination of productionProfile, code, tags, properties. The node requires zenApi credentials.

Discussion