Newer Version Available

This content describes an older version of this product. View Latest

OAASRequest Class

Represents the request sent in the OAAS.Optimize() method. This class contains all the details of a global optimization call.

Namespace

FSL

OAASRequest Properties

OAASRequest contains the following properties.

allTasksMode

If true, all service appointments within the time frame are considered during optimization. If false, only unscheduled appointments are considered, and scheduled appointments are pinned (unmovable).

Signature

public Boolean allTasksMode {get; set;}

Property Value

Type: Boolean

filterFieldAPIName

The API name of a Boolean service appointment field. Only service appointments on which the Boolean field is set to true are optimized.

Signature

public String filterFieldAPIName {get; set;}

Property Value

Type: String

start

The start of the time frame in which the optimization process considers data for scheduling.

Signature

public Datetime start {get; set;}

Property Value

Type: Datetime

finish

The end of the time frame in which the optimization process considers data for scheduling.

Signature

public Datetime finish {get; set;}

Property Value

Type: Datetime

includeServicesWithEmptyLocation

If true, service appointments both with and without an associated service territory are considered during optimization. If false, only appointments with an associated service territory are considered.

Signature

public Boolean includeServicesWithEmptyLocation {get; set;}

Property Value

Type: Boolean

locations

A list of IDs of service territories for which optimization will run.

Signature

public List<Id> locations {get; set;}

Property Value

Type: List<Id>

numberOfServicesToSchedule

Not currently in use. Leave as null.

Signature

public Integer numberOfServicesToSchedule {get; set;}

Property Value

Type: Integer

schedulingPolicyId

The record ID of the scheduling policy that is used to schedule the service appointment.

Signature

public Id schedulingPolicyId {get; set;}

Property Value

Type: Id