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 |
|---|---|---|---|
|
INT |
Yes |
Event type of the new event. |
|
STRING |
No |
Target object type: |
|
STRING |
No |
Context parameter — content depends on |
|
BYTE[] |
Yes |
Executable script code of the event (JavaScript or VBScript), passed as BYTE[] (BASE64). Encode the bytes as UTF-8 with BOM — the server detects UTF-8 only by the leading BOM and then stores the full Unicode range. Without a BOM the bytes are interpreted as legacy Windows-1252 (cp1252). Applies regardless of |
|
STRING |
No |
Target platform: |
2. Output Parameters
| Name | Type | Dependency | Description |
|---|---|---|---|
|
INT |
— |
ID of the newly created event. Corresponds to the |
|
The server enforces uniqueness over the combination of |
|
The spelling of the id parameter is not consistent across the OS event jobs: |
3. Return Value
(INT): 0 = Job successful, otherwise error code
Complete list of error codes