Newer Version Available

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

Employee

Represents an employee within a company or organization. This object is available in API version 48.0 and later. In API version 49.0 and later, this object supports reports, criteria-based sharing rules, and history tracking, plus you can exclude individual fields from custom page layouts.

Supported Calls

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

Special Access Rules

To access this object, you must be assigned a Workplace Command Center permission set license and the Provides access to Workplace Command Center features system permission.

Fields

Field Details
AboutMe
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Information about the employee, such as areas of interest or skills. Values can be provided on Employee’s profile page. This field is available even if Chatter is disabled.
AlternateEmail
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s alternate email address.
Availability
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s availability status.
Possible values are:
  • In The Office
  • Out Of Office
  • Out Sick
  • PTO
  • Volunteering Time Off
  • Working Remotely
AvailabilityEndDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The end date of the Employee’s availability, inclusive of the date.
AvailabilityStartDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The start date of the Employee’s availability, inclusive of the date.
BannerPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
Read only. The URL for the employee's banner photo. Available in API v51.0 and later.
CurrentWellnessStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s current wellness status.
Possible values are:
  • Available To Work
  • Remote Work Only
  • Unavailable
  • Unknown
DateOfBirth
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s date of birth.
Email
Type
email
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
Description
The employee’s email address. This field is unique within your organization.
EmployeeNumber
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Required. The employee's employment ID for the organization they were hired into. This field is unique within your organization.
EmployeeStatus
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
Required. The employee's current work status.
Possible values are:
  • Active
  • Inactive
  • Leave
  • Terminated
EmploymentType
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee's full-time or part-time status.
Possible values are:
  • Full-Time
  • Part-Time
FirstName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The employee’s first name.
FullPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
Read only. The URL for the employee's profile photo. The URL is updated every time a photo is uploaded and reflects the most recent photo. If a newer photo has been uploaded, the URL returned for an older photo isn’t guaranteed to return a photo. Query this field for the URL of the most recent photo. Available in API v51.0 and later.
Gender
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s gender.
Possible values are:
  • Female
  • Male
  • Non-Binary / Non-Conforming
  • Other
  • Prefer Not to State
  • Transgender Female
  • Transgender Male
HomeAddress
Type
address
Properties
Filter, Nillable
Description
The employee’s home address.
HomeCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The city for the employee’s home address.
HomeCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The county for the employee’s home address.
HomeGeocodeAccuracy
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The level of accuracy of an employee’s home address geographical coordinates compared with its physical address. A geocoding service typically provides this value based on the address’s latitude and longitude coordinates.
Possible values are:
  • Address
  • Block
  • City
  • County
  • ExtendedZip
  • NearAddress
  • Neighborhood
  • State
  • Street
  • Unknown
  • Zip
HomeLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with HomeLongitude to specify the precise geolocation of the employee’s home address. Acceptable values are numbers between –90 and 90 with up to 15 decimal places.
HomeLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with HomeLatitude to specify the precise geolocation of the employee’s home address. Acceptable values are numbers between –180 and 180 with up to 15 decimal places.
HomePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s home phone number.
HomePostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The postal code for the employee’s home address.
HomeState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The state for the employee’s home address.
HomeStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The street for the employee’s home address.
IndividualId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A reference to the Individual record that this employee is assigned to.
InternalOrganizationUnitId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A reference to the InternalOrganizationUnit this employee is assigned to.
JobProfile
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s job profile at the company.
LastName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The employee’s last name.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.
LocationId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A reference to the Location that this employee is assigned to.
ManagerId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A reference to the Employee record of the employee's manager.
MediumPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
Read only. The URL for the medium-sized employee's profile photo. The URL is updated every time a photo is uploaded and reflects the most recent photo. If a newer photo has been uploaded, the URL returned for an older photo isn’t guaranteed to return a photo. Query this field for the URL of the most recent photo. Available in API v51.0 and later.
MiddleName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s middle name.
Name
Type
string
Properties
Filter, Group, idLookup, Nillable, Sort
Description
A compound field of Employee.FirstName, Employee.MiddleName, and Employee.LastName.
NameSuffix
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee’s suffix.
OutOfOfficeMessage
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The message portion of the employee availability. This message can provide reasons or details about the change in availability. The maximum length of this string is 40 characters.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the user who currently owns this record. Default value is the user logged in to the API to perform the create operation.
PreferredFirstName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name the employee prefers to be called.
PreferredPronoun
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee's preferred pronoun.
Possible values are:
  • He/Him/His
  • Other/Ask Me
  • She/Her/Hers
  • They/Them/Theirs
RelatedPersonId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Links an employee to a person account with a unique value. Reserved for future use. Don’t edit it.
SmallPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
Read only. The URL for the small-sized employee's profile photo. The URL is updated every time a photo is uploaded and reflects the most recent photo. If a newer photo has been uploaded, the URL returned for an older photo isn’t guaranteed to return a photo. Query this field for the URL of the most recent photo. Available in API v51.0 and later.
StatusAsOf
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
Required. Start date of the employee’s current status.
StatusEndDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Planned end date for the employee’s status.
TimeZone
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The time zone which the employee’s work hours fall within.
UserId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Lookup field to associate an Employee record with a user in the org. The field is optional and unique.
WorkPhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The employee's formatted work phone number including country code and extension.
WorkerType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. The type of worker for the employee.
Possible values are:
  • Alumnus
  • Contractor
  • Employee
  • Intern
  • Temporary
WorkingHoursEnd
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The end time of the employee’s working hours.
WorkingHoursStart
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The start time of the employee’s working hours.

Associated Objects

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

EmployeeHistory (API version 49.0)
History is available for tracked fields of the object.
EmployeeOwnerSharingRule
Sharing rules are available for the object.
EmployeesShare (API version 49.0)
Sharing is available for the object.