Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > Other Preprogrammed SmartScript Methods >

GetSessionId


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

Syntax

GetSessionId

Returns

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

Usage

GetSessionId is declared as a string. This method should be called from either Script_Finish or Script_Save events.

Siebel VB Example

Dim ScriptSessionId as String
ScriptSessionId = GetSessionId

Siebel SmartScript Administration Guide