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

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()

Siebel eScript Example

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().

Siebel SmartScript Administration Guide Copyright © 2006, Oracle. All rights reserved.