Bookshelf Home | Contents | Index | Search | PDF |
Siebel Reports Administration Guide > Report Business Service > Report Business Service Input Parameters >
SyncOne
Table 37 contains the input parameters for the SyncOne business method.
Following is an example script for the SyncOne business method. When this script is run, you are returned feedback in the variable sText.
In the script below, SyncOne is executed on users VSILVER and DRA three times while storing the user feedback messages in the variable msg. You can consult msg on the status of the SyncOne request.
In this example, the script reflects three possible outcomes:
- The user is created.
- The user's password is reset.
- The script fails.
These outcomes are indicated in msg.
.....
var svc = TheApplication().GetService("Report Business Service");
var Inputs = TheApplication().NewPropertySet();
var Outputs = TheApplication().NewPropertySet();
var msg = "";
for(var x = 1; x < 3; x++) {
with (Inputs) {
SetProperty ("AcAdminLogin", "administrator");
SetProperty ("AcAdminPassword", "");
SetProperty ("UserID", "VSILVER,DRA");
}
try {
svc.InvokeMethod ("SyncOne", Inputs, ExtOutputs);
}
catch (e)
{
var sText = e.errText;
var nCode = e.errCode;
msg += sText;
}
}
.....
For information on enabling these business methods, see information on object interfaces and scripting on Siebel Tools Online Help and in Siebel Business Process Designer Administration Guide on the Siebel Bookshelf.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Reports Administration Guide, Version 7.5, Rev B Published: 18 April 2003 |