Siebel Field Service Guide > Business Service Methods Reference for Field Service > Scheduling >

ConfirmAppointment Method


ConfirmAppointment confirms the selected appointment (timeslot) reserved by the GetAppointment method. The activity is assigned to the given owner and starts during the selected timeslot. This method will also release the other reserved time slots previously reserved by GetAppointment.

Usage

This method is called when the user clicks the Book Appointment button on the Activities screen > Activity List > Schedule view, and selects a time slot from the Pick Appointment dialog box (Abs Result Pick Applet).

Additional Details

The inputs for this method are described in Table 141.

Table 141. Inputs for ConfirmAppointment Method
Input
Description

ReqId

Request ID returned by the ABS for the GetAppointment method.

SvcRegnId

Service region ID of the activity.

There are no outputs for this method.

ConfirmAppointment needs an additional input property request key for the Server Requests business service. See Invoking the ABS and Optimization Engine Methods for more information. The following is a sample script that defines this additional input.

var SRMSvc = TheApplication().GetService("Server Requests");

var srmInputs = TheApplication().NewPropertySet();

var apptBookInputs = TheApplication().NewPropertySet();

var srmOutputs = TheApplication().NewPropertySet();

srmInputs.SetProperty("Mode", "Sync");

srmInputs.SetProperty("Method", "ConfirmAppointment");

srmInputs.SetProperty("Component", "ApptBook");

srmInputs.SetProperty("ReqKey", Inputs.GetProperty("strSRId"));

// Or whatever way the service region ID is determined

apptBookInputs.SetProperty("ActId", Inputs.GetProperty("strActId"));

apptBookInputs.SetProperty("SvcRegnId", Inputs.GetProperty("strSRId"));

apptBookInputs.SetProperty("ReqId", Inputs.GetProperty("strReqId"));

apptBookInputs.SetProperty("SlotStart", Inputs.GetProperty("strSlotStartTimeSRTimeZone"));

srmInputs.AddChild(apptBookInputs);

SRMSvc.InvokeMethod("SubmitRequest", srmInputs, srmOutputs);

Siebel Field Service Guide