Skip to main content

SetZenonDynamicProperty@1

The SetZenonDynamicProperty@1 node writes a single value to the zenon dynamic-property tree of a project. The JSON value is coerced to the CLR type that zenon expects for the target property, then forwarded to the Editor AddIn.

Requires the zenon Editor AddIn to be running and connected.

Adapter Prerequisites

Node Configuration

For fields targetPath, targetValueWriteMode, and targetValueKind, see Overview.

transformations:
- type: SetZenonDynamicProperty@1
projectIdOrName: MyZenonProject
path: Description # dotted path to a writable leaf
type: String # String | Int | Double | Bool | Timestamp | Color
value: "New description" # literal value, or use valuePath
valuePath: $.request.value # optional: resolve from data context
targetPath: $.result
targetValueWriteMode: Overwrite

Value types

typeAccepted JSON value
Stringstring
Intinteger number
Doublenumber
Boolboolean
TimestampISO-8601 string (UTC)
Colorpacked 32-bit int (e.g. 0x00RRGGBB)

Output shape

{
"Success": true,
"ErrorCode": null,
"ErrorMessage": null
}

Error codes

ErrorCodeMeaning
NotWritableProperty is read-only or the path is a bare collection head
NotFoundPath does not exist in the project
InvalidValueValue could not be coerced or zenon rejected it
ReadOnlyProperty is marked read-only by zenon
CanceledOperation was canceled by zenon
CoercionFailedJSON value could not be coerced to the requested type
UnknownUnmapped error — see ErrorMessage for details