Siebel Chat Guide > Methods for Customizing Siebel Chat Process Flow and Interface Functionality > Methods for Customizing Siebel Chat Process Flow and Interface Functionality >

GetLanguageCodeFromMapping


This method is a script method, and it is used to get the language code from the user defined mapping. Table 25 shows the input argument for GetLanguageCodeFromMapping.

Table 25. GetLanguageCodeFromMapping Method: Input Argument
Input Argument
Description

RequestSiteID

The ID for the request site; that is, the customer site requesting to chat to an agent.

Table 26 shows the output argument for GetLanguageCodeFromMapping.

Table 26. GetLanguagecodeFromMapping Method: Output Argument
Output Argument
Description

Language

The language code for the request site. An example of the method code is as follows:

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)

{

if (MethodName == "GetLanguageCodeFromMapping")

{

var sRequestSiteID = "";

sRequestSiteID = Inputs.GetProperty("RequestSiteID");

switch(sRequestSiteID)

{

case "0":

Outputs.SetProperty ("LanguageCode", "ENU");

break;

case "101":

Outputs.SetProperty ("LanguageCode", "ITA");

break;

case "71":

Outputs.SetProperty ("LanguageCode", "FRA");

break;

default:

Outputs.SetProperty ("LanguageCode", "ENU");

break;

}

return CancelOperation;

}

return (ContinueOperation);

}

Siebel Chat Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.