GetValueOfKey method: PSEvent class

Syntax

GetValueOfKey(key)

Description

Use the GetValueOfKey method to get the value for a key from the notification data.

Parameters

Parameter Description

key

Specify the string representing the name of the key. Key names are defined in the Data Structure field on the Define Server Side Events page.

Returns

A valid string representing the corresponding value for the key, if the key exists. An empty string if the key does not exist.

Example

The following example gets the value for the key named ID.

&Key = "ID";
&Value = &EventObject.GetValueOfKey(&Key);