Siebel Object Interfaces Reference > eScript Quick Reference >

Business Service Methods for eScript


Table 76 lists a summary of the Business Service methods' syntax.

Table 76. Business Service Methods Syntax Summary
Method
Description
Syntax

GetFirstProperty Method

Retrieves the name of the first property of a business service.

var oService;
var sName;sName = oService.GetFirstProperty();

GetNextProperty Method

Once the name of the first property has been retrieved, retrieves the name of the next property of a business service.

var oService;
var sName;
sName = oService.GetNextProperty();

GetProperty Method

Retrieves the value stored in the specified property.

var oService;
var sValue;
sValue = oService.GetProperty(propName);

Name Method

Returns the name of the business service.

var oService;
var sName;
sName = oService.Name();

InvokeMethod Method

Calls a specialized method or a user-created method on the business service.

var oService;
oService.InvokeMethod(methodName, InputArguments, OutputArguments);

PropertyExists Method

Returns a Boolean value indicating whether the property specified in the argument exists.

var oService;
var propExists;
propExists = oService.PropertyExists( propName);

RemoveProperty Method

Removes a property from a business service.

var oService;
oService.RemoveProperty(propName);

SetProperty Method

Assigns a value to a property of a business service

var oService;
oService.SetProperty(propName, propValue);

Table 77 lists a summary of the Business Service Events syntax.

Table 77. Business Service Events Syntax Summary
Method
Description
Syntax

Service_InvokeMethod Event

Called after a method is invoked in a business service.

Service_InvokeMethod(methodName);

Service_PreCanInvokeMethod Event

Called before the PreInvokeMethod, allowing the developer to determine whether or not the user has the authority to invoke the business service method.

Service_PreCanInvokeMethod (MethodName, &CanInvoke)

Service_PreInvokeMethod Event

Called before a specialized method is invoked on a business service.

Service_PreInvokeMethod(methodName, Inputs, Outputs);

Siebel Object Interfaces Reference