---
schema_version: "1"
id: 12dc9439b061de7f4d652d7b4d990ce33d0205294b2b83219bd1f523ced34192
title: Shift
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wkfsl-sforce-api-objects-shift.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wkfsl-sforce-api-objects-shift.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f00c64b0940cdf88afb8f718ee32333d208f85ed54c6bc4a2168f00d7a1bb70d
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# 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](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_shift.htm).

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.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `search()`, `undelete()`, `update()`, `upsert()`

## Custom Fields

| Field                        | Type      | Properties                                    | Description                                                                                                                                                                                                                                                                      |
| ---------------------------- | --------- | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| wkfsl\_\_Facility_Plan\_\_c  | reference | Create, Filter, Group, Nillable, Sort, Update | The 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\_\_c | reference | Create, Filter, Group, Nillable, Sort, Update | This 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. |
