Siebel Field Service Guide > Business Service Methods in Siebel Field Service > Methods for Schedules >

UnloadEmployees Method


UnloadEmployees updates the schedule for an employee by adding new exception hours to the cache. This method applies when employees are unavailable as a result of vehicle breakdown and so on. The activities scheduled during the exception hours for the employee are rescheduled or unscheduled. Activities are rescheduled for any open slots that meet the hard constraints. Employees must have at least 1 defined exception hour.

Invoked From

This method is called when a user clicks the Unavailable button (in the Employees view in the Service Region List of the Administration - Scheduling screen).

Arguments

Table 94 describes the arguments for this method.

Table 94. Arguments for UnloadEmployees Method
Argument Name
Description

SvcRegnId

The service region ID of the employees to unload.

EmployeeIds

The comma-separated employee IDs. However, the Optimizer processes only 1 employee ID at a time. If more than 1 employee ID is provided, then the Optimizer processes only the first employee ID.

Return Values

Table 95 describes the return values for this method.

Table 95. Return Values for UnloadEmployees Method
Return Value
Description

Message

The Optimizer error tracing message that is returned if an error occurs.

ErrorCode

The error code returned from the Optimizer. A value of 0 indicates the operation is successful.

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