Newer Version Available

This content describes an older version of this product. View Latest

Shift

Represents a volunteer activity after a volunteer signs up for a volunteer project. This object is available in API version 49.0 and later.

Supported Calls

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

Fields

Field Details
ActualEndTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The actual date and time when the shift ended.
ActualStartTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The actual date and time when the shift started.
CompletedHours
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The number of hours completed.
EndTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The planned date and time when the shift ends.
Label
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The customizable label, or name, for the shift.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the current user last viewed a related record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the current user last viewed this record.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The owner of the shift.
Account__c
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Lookup to the person account associated with the shift.
RecordTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Lookup to the record type associated with the shift.
RelatedLocationId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Lookup to the location of the shift.
RelatedToId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Lookup to the related volunteer project associated with the shift.
ServiceResourceId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Lookup to the service resource associated with the shift.
ShiftNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The number automatically created for the shift.
StartTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The planned date and time when the shift starts.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The current status of the shift.
Possible values are:
  • Completed
  • In Progress
  • Planned
  • Tentative

The admin can add the value Canceled for the canceled state.

Note

StatusCategory
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The status of the shift using static values. This field is derived from Status using the mapping defined in setup.
Possible values are:
  • Confirmed
  • Published
  • Tentative