---
schema_version: "1"
id: 59ceda79351e5c7b93bb44421dca793f4feccf4715babe91470e49a4c311a29c
title: ShiftPatternEntry
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_shiftpatternentry.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_shiftpatternentry.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 19b702ed1b10e7560c76e7d92f9871fb8bfe6dcdf6c62376042acee9d2aaa194
description: ShiftPatternEntry links a shift template to a shift pattern. This object is available in API version 51.0 and later.
---
# ShiftPatternEntry

ShiftPatternEntry links a shift template to a shift pattern. This object is available in API version 51.0 and later.

## Supported Calls

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

## Special Access Rules

Field Service must be enabled. Users must have Field Service permission.

## Fields

| Field | Details |
| --- | --- |
| DayOrder | 
Type

int

Properties

Create, Filter, Group, Sort, Update

Description

DayOrder links the shift template to the specific day within the shift pattern duration that the template. For example, if the DayOrder is 2 then a shift from the associated template is created on the second day of the pattern.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date that the shift pattern entry was last used.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date that the shift pattern entry was last viewed.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

An auto-generated reference number for the shift pattern entry.



 |
| ShiftPatternId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the shift pattern that the shift pattern entry is linked to.

This is a relationship field.

Relationship Name

ShiftPattern

Relationship Type

Lookup

Refers To

ShiftPattern



 |
| ShiftTemplateId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the shift template that’s used to create shifts for this shift pattern entry.

This is a relationship field.

Relationship Name

ShiftTemplate

Relationship Type

Lookup

Refers To

ShiftTemplate



 |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[ShiftPatternEntryChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 54.0)

Change events are available for the object.

#### See Also

- [ShiftPattern](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_shiftpattern.htm "Represents a pattern of templates for creating shifts. This object is available in API version 51.0 and later.")