SchedulingObjective

Represents a scheduling objective in Workforce Engagement. Scheduling objectives define business goals that the scheduling tools consider when identifying agents for shifts.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

This type extends Metadata and inherits its fields.

SchedulingObjective components have the suffix .SchedulingObjective and are stored in the SchedulingObjective folder.

Introduced in API version 55.0.

This type is available only if Workforce Engagement is enabled in your org. To view, create, edit, and delete records, the user requires the Workforce Engagement Planner permission set.

  • Type: string
  • Required: No
  • Description: A description of this component. The description should explain the component’s purpose and behavior so that administrators and developers understand when to use it.
  • Type: boolean
  • Required: No
  • Description: Indicates whether the component is protected (true) or not (false). The default value is false.
  • Type: string
  • Required: Yes
  • Description: Required. The name of the objective.
  • Type: SchedulingCategory (enumeration of type string)
  • Required: Yes
  • Description: Required. What the scheduling logic applies the objective to.
  • Possible values:
    • A — Service Appointment
    • B — Shift
  • Type: SchedulingObjectiveParameter[]
  • Required: No
  • Description: Parameters associated with a scheduling objective, such as the number of days before and after a shift that the logic considers when balancing assignments.
  • Type: SchedulingObjectiveType (enumeration of type string)
  • Required: Yes
  • Description: Required. Specifies the type of objective.
  • Possible values:
    • AgentPreference — In the UI, this value appears as Maximized Preferences.
    • BalanceNonStandardShifts
    • BalanceShifts

Represents a parameter that’s associated with a scheduling objective.

  • Type: ObjectiveParameterKey (enumeration of type string)
  • Required: Yes
  • Description: Required. The scheduling objective parameter key.
  • Possible values:
    • DaysAhead
    • DaysBack
  • Type: string
  • Required: No
  • Description: The scheduling objective parameter value.

The following is an example of a SchedulingObjective component.

The following is an example package.xml that references the previous definition.

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.