Shift

Represents a shift for service resource scheduling. Shift is a Salesforce standard object that represents an employee’s availability based on their preferences and constraints. Shifts are created for the service resources (employees) included in a facility plan when the planner sends a request for availability. This object is available in API version 46.0 and later.

For standard fields on the Shift object, see Object Reference - Shift.

A scheduler matches a ServiceAppointment to a ServiceResource object based on a planner’s request for availability. Shifts are linked to a service resource, while service appointments are linked to the facility’s planned occupancy.

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

FieldTypePropertiesDescription
wkfsl__Facility_Plan__creferenceCreate, Filter, Group, Nillable, Sort, UpdateThe facility plan associated with this shift. This field was added in managed package version 3.0. This field is available in API version 48.0 and later.
wkfsl__PlanningPeriod__creferenceCreate, Filter, Group, Nillable, Sort, UpdateThis field has been deprecated in managed package version 3.0 and later.The planning period associated with this shift. Before version 3.0, shifts used a lookup relationship to the wkfsl__PlanningPeriod__c object. This field is available in API version 48.0 and later.