dms.CreateOsEvent

Creates a new OS event.

This job accesses the internal scripting infrastructure of enaio® directly. Incorrectly configured events can cause unexpected behavior or serious malfunctions on the client or server side.

1. Input Parameters

Name Type Required Description

EventCode

INT

Yes

Event type of the new event.
Complete value description: Event code list

OsClassName

STRING

No

Target object type: type_id as a string or "Application".
Description: Field os_class_name

OsEventParams

STRING

No

Context parameter — content depends on EventCode (field GUID, job name, or library name).
Mapping: os_event_params — Mapping

VBCode

BYTE[]

Yes

Executable script code of the event (JavaScript or VBScript).
Description: Field vb_code

AppClass

STRING

No

Target platform: 1 = Client · 2 = Server · 3 = WebClient.
Mapping: Field app_class

2. Output Parameters

Name Type Dependency Description

IsEventId

INT

ID of the newly created event. Corresponds to the id field in the JSON response of dms.GetOsEvents.

3. Return Value

(INT): 0 = Job successful, otherwise error code
Complete error list