SetCustomField Method

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

Syntax

ScriptContext.Alert.SetCustomField FieldNumber Int, FieldValue String
ScriptContext.CreateAlert.SetCustomField FieldNumber Int, FieldValue String

Parameters

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

Return Type

None.

Example

To set the value of the second user-defined custom field of an alert to Second Value, enter:

Dim MYalert
Set MYalert = ScriptContext.Alert

MYalert.SetCustomField 2, "Second Value"