RunSmartScript

This function invokes a SmartScript programmatically.

Syntax

RunSmartScript callScriptName, pathId, language, currency, viewName, appletName

Argument Description

callScriptName

Name of the SmartScript, or “ “(quotation marks) if pathId is specified

pathId

Row ID of the SmartScript, or “ “ if ScriptName is specified

language

A language code

currency

A currency code

viewName

Name of the view to be displayed if it is not the agent’s SmartScript view

appletName

Specify the name of the applet if you want to invoke the SmartScript on a view where the applet is a clone of the SmartScript Player Applet

Returns

Not applicable

Usage

For consistency, the arguments to RunSmartScript are identical to those of RunCallScript, except for the additional viewName and appletName parameters. The viewName parameter allows a view other than the default agent’s SmartScript view to be accessed. This is useful if an alternative view is configured for a specific purpose. The view specified must contain an instance of the SmartScript Player Applet to present the SmartScript interface to the agent.

Siebel VB Example

InvokeMethod "RunSmartScript", "Pentium II Script", "", "ENU", "USD"
InvokeMethod ("RunSmartScript", "Pentium II Script", "", "ENU", "USD");
Sub ButtonScript_Click

TheApplication.InvokeMethod "RunSmartScript", "Pentium II Script"

End Sub