GetCustomField Method

Gets the value of a user-defined custom field of an alert.

Syntax

ScriptContext.Alert.GetCustomField(FieldNumber Int)
ScriptContext.CreateAlert.GetCustomField(FieldNumber Int)

Parameters

FieldNumber Specifies the number of the user-defined custom field to get. Possible values for the FieldNumber parameter are 1, 2, 3, 4, and 5 to get the first through fifth custom fields, respectively.

Return Type

String.

Example

To get the value of the second user-defined custom field of an alert, enter:

Dim MYalert
Dim MYcustomfield
Set MYalert = ScriptContext.Alert

Set MYcustomfield = MYalert.GetCustomField(2)