GetSessionId

GetSessionId returns a row ID of the session table where the script answers are stored.

Syntax

GetSessionId

Returns

The row ID of the session table where the script answers are stored according to the script's administration settings (Save Session column on the script and Save Answer Table flag on the script's questions). It returns a string. It is empty if the script is not set to save the session, or if GetSessionId is called from incorrect events.

Usage

GetSessionId is declared as a string. Call this method from either Script_Finish or Script_Save events.

Siebel VB Example

Dim ScriptSessionId as String
ScriptSessionId = GetSessionId()
Var ScriptSessionId;
ScriptSessionId = GetSessionId();
Note: In Siebel eScript make sure to include the Header and Footer "function Script_Finish() {" and "}" or else the script executes without returning a value from GetSessionId().