Shift
Represents a shift for a user. Available in API versions 65.0 and later.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), upsert()
Consumer Goods Cloud must be enabled.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Sets a background color when shifts are displayed in the UI. Use a 3- or 6-digit hexadecimal format, for example #FF00FF. Available in API version 54.0 and later.
-
Type: location
-
Properties: Nillable
-
Description: Captures the user’s geolocation at the end of the shift.
This field is reserved for future use.
- Type: dateTime
- Properties: Create, Filter, Sort, Update
- Description: The date and time that the shift ends.
-
Type: picklist
-
Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: Specifies the allowed location type for geofence validation at the end of the shift.
This field is reserved for future use.
-
Possible values:
First CustomerHomeWarehouse
-
Type: picklist
-
Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: Specifies the allowed location type for geofence validation at the start of the shift.
This field is reserved for future use.
-
Possible values:
First CustomerHomeWarehouse
-
Type: picklist
-
Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: Specifies the notification type for geofence validation at the start and end of the shift.
This field is reserved for future use.
-
Possible values:
ErrorWarning
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether geofencing was enabled at the end of the shift.
This field is reserved for future use.
-
Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether geofencing was enabled at the start of the shift.
This field is reserved for future use.
-
Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether user’s geolocation was captured at the end of the shift.
This field is reserved for future use.
-
Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether user’s geolocation was captured at the start of the shift.
This field is reserved for future use.
-
Default value:
false
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Indicates a shift that overlaps with holiday hours. Available in API version 55.0 and later.
- Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether the shift is nonstandard, such as overtime or on-call shifts.
Available in API version 54.0 and later.
-
Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether the shift was ended outside the allowed distance between the user’s GPS location and the geofence end location (true) or not (false).
This field is reserved for future use.
-
Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether the shift was started outside the allowed distance between the user’s GPS location and the geofence start location (true) or not (false).
This field is reserved for future use.
-
Default value:
false
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The job profile associated with the shift. Available in API versions 47.0 and later.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The label that a shift is given.
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The date and time when the current user last viewed a related record.
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The date and time when the current user last viewed this record.
-
Type: picklist
-
Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: Specifies the notification type for open tours at the end of the shift.
This field is reserved for future use.
-
Possible values:
ErrorWarning
-
Type: reference
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: The owner of the shift.
This is a polymorphic relationship field.
-
Relationship Name: Owner
-
Relationship Type: Lookup
-
Refers To: Group, User
-
Type: reference
-
Properties: Create, Filter, Group, Nillable, Sort, Update
-
Description: The ID of the recordset filter criteria selected for the shift. Available in API version 49.0 and later.
This is a relationship field.
-
Relationship Name: RecordsetFilterCriteria
-
Relationship Type: Lookup
-
Refers To: RecordsetFilterCriteria
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: The number automatically given to the shift upon creation.
-
Type: reference
-
Properties: Create, Filter, Group, Nillable, Sort
-
Description: The shift template ID, if the shift was created from a shift template. Available in API version 53.0 and later.
This is a relationship field.
-
Relationship Name: ShiftTemplate
-
Relationship Type: Lookup
-
Refers To: ShiftTemplate
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether the shift was automatically ended when the tour was completed.
This field is reserved for future use.
-
Default value:
false
-
Type: boolean
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: Indicates whether the shift was automatically started when the tour began.
This field is reserved for future use.
-
Default value:
false
-
Type: location
-
Properties: Nillable
-
Description: Captures the user’s geolocation at the start of the shift.
This field is reserved for future use.
- Type: dateTime
- Properties: Create, Filter, Sort, Update
- Description: The date and time that the shift starts.
-
Type: picklist
-
Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: The current status of the shift.
This field is a Dynamic Enum. The order of the picklist values depends on how the Admin configures them in Object Manager. This field is reserved for future use.
This field is reserved for future use.
-
Default value:
New -
Possible values:
CompleteIn ProgressNew
-
Type: picklist
-
Properties: Filter, Group, Nillable, Restricted picklist, Sort
-
Description: Specifies the status of the shift using static values. This field is derived from Status using the mapping defined in setup.
This field is reserved for future use.
-
Possible values:
CompleteIn progress—In ProgressNew
-
Type: picklist
-
Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
-
Description: Type of time slot for the shift. The same setup values as the
TimeSlotfield in the OperatingHours object. -
Possible values:
Normal(default value)Extended
-
Type: reference
-
Properties: Create, Filter, Group, Nillable, Sort, Update
-
Description: The user assigned to the shift.
This field is a relationship field.
-
Relationship Name: User
-
Refers To: User
This field is reserved for future use.
This object has the following associated objects. Unless noted, they are available in the same API version as this object.
-
ShiftChangeEvent (API version 54.0): Change events are available for the object.
-
ShiftFeed: Feed tracking is available for the object.
-
ShiftHistory: History is available for tracked fields of the object.
-
ShiftOwnerSharingRule: Sharing rules are available for the object.
-
ShiftShare: Sharing is available for the object.