Variables
Here you will find a description of the variables that are available to you when scripting in Unifi.
Integration
Identify message script
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| Any | The payload string or object. Pre-processing can be configued on the Integration to automatically convert JSON to |
| Object | An object containing the request headers. |
| Object | Object used to contain Connection Variables. |
Add note script
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| Any | The payload string or object. Pre-processing can be configued on the Integration to automatically convert JSON to |
| Object | An object containing the request headers. |
| Object | Object used to contain Connection Variables. |
Connection
Endpoint URL
The Endpoint URL will be combined with the Path value on the Message.
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Bond | The record of the |
| Object | An object that can be used to pass variables between scripts. |
| Object | Object used to contain Connection Variables. |
Message
XML Template
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Bond | The record of the |
| Object | An object that can be used to pass variables between scripts. |
| Object | Object used to contain Connection Variables. |
Path
The Path will be combined with the Endpoint URL value on the active connection.
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Bond | The record of the |
| Object | An object that can be used to pass variables between scripts. |
| Object | Object used to contain Connection Variables. |
Outbound condition
These variables are also available in the 'Advanced condition' script for the Outbound Trigger.
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| Object | Object used to contain Connection Variables. |
| GlideRecord | The record that triggers the message. The actual table will differ between Processes. |
Reference lookup script
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| Any | The result of the script being called. |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Any | The payload string or object. Pre-processing can be configued on the Integration to automatically convert JSON to |
| Object | Object used to contain Connection Variables. |
Extract attachments script
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Any | The payload string or object. Pre-processing can be configued on the Integration to automatically convert JSON to |
| Object | Object used to contain Connection Variables. |
Message Script
Source to Stage (Outbound)
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| GlideRecord | The record of the |
| Bond | The record of the |
| GlideRecord | The record that is being integrated. |
| Object | Object used to contain Connection Variables. |
Stage to Request (Outbound)
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| GlideRecord | The record of the |
| Bond | The record of the |
| Object | An object that can be used to pass variables between scripts. |
| Object | Object used to contain Connection Variables. |
Payload to Stage (Inbound)
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| GlideRecord | The record of the |
| Any | The payload string or object. Pre-processing can be configued on the Integration to automatically convert JSON to |
| Object | Object used to contain Connection Variables. |
Stage to Target (Inbound)
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| GlideRecord | The record of the |
| Bond | The record of the |
| GlideRecord | The record that is being integrated. |
| Object | Object used to contain Connection Variables. |
Field
Default inbound
During operation, Stage to Target Message Script variables will apply.
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| GlideRecord | The record of the |
| Bond | The record of the |
| GlideRecord | The record that is being integrated. |
| Object | Object used to contain Connection Variables. |
Default outbound
During operation, Source to Stage Message Script variables will apply.
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| GlideRecord | The record of the |
| Bond | The record of the |
| GlideRecord | The record that is being integrated. |
| Object | Object used to contain Connection Variables. |
Field Map
All Mapping Scripts (Build phase only)
Only code contained within dollar-square brackets $[...]
will be compiled. During operation, Message Script variables will apply.
Variable | Type | Description |
| Object | Object containing several functions that can be used for logging. |
| String | The error message to return from the script. Alternatively you can simply throw a |
| GlideRecord | The record of the |
| Object | The dynamic stage object. |
| Object | Object used to contain Connection Variables. |
Response Action
Variable | Type | Description |
| GlideRecord | The current |
| Bond | The record of the |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| GlideRecord | The record of the |
| Any | A pre-processed payload string or object. |
| GlideRecord | The record of the |
| Object | Object containing several functions that can be used for logging. |
| Object | Object used to contain Connection Variables. |
Event Action
Variable | Type | Description |
| GlideRecord | The record of the |
| GlideRecord | The current |
Last updated