Table
HcmEmployment
Employment
Records a worker's employment with a company, with a start and end date. Each row links a worker to a legal entity and shows whether the worker is an employee or a contractor. It can also link to a regulatory establishment and a default dimension set.
- Table name
HcmEmployment- Module
Cross-module and platform- Table group
Main- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
HcmEmployment_AK1- Key fields
Worker, LegalEntity, ValidFrom, ValidTo- Model
PersonnelCore
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkerPoints to the worker who holds this employment. | Int64HcmWorkerRecId | Yes | HcmWorker.RecId | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 7 more |
LegalEntityPoints to the company (legal entity) that employs the worker. | Int64CompanyInfoRecId | Yes | CompanyInfo.RecId | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 11 more |
ValidFromFirst date and time of the employment. | UtcDateTimeHcmEmploymentValidFrom | No | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 19 more | |
ValidToLast date and time of the employment. | UtcDateTimeHcmEmploymentValidTo | No | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 18 more | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DefaultDimensionPoints to the set of dimension values used by default for this employment. | Int64HcmDefaultDimension | No | DimensionAttributeValueSet.RecId | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 4 more |
EEOEstablishmentPoints to the regulatory establishment linked to this employment. | Int64HcmEEOEstablishmentRecId | No | HcmEEOEstablishment.RecId | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 4 more |
EmploymentIdIdentifier of the employment. | String (40)HcmEmploymentId | No | HcmEmploymentV2EntityPayrollEmployeeV2EntityHcmContractorV2Entityand 2 more | |
EmploymentTypeTells whether the worker is an employee or a contractor. | EnumHcmEmploymentType (enum) | Yes | HcmEmploymentV2EntityHcmEmploymentEntityHcmEmploymentPerCompanyEntityand 5 more | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
Relations (4)
Each relation joins HcmEmployment to another table on the fields shown.
CompanyInfo_FK→CompanyInfoJoin on
LegalEntity = CompanyInfo.RecIdMany HcmEmployment records → exactly one CompanyInfo record
DimensionAttributeValueSet_FK→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany HcmEmployment records → zero or one DimensionAttributeValueSet record
HcmWorker_FK→HcmWorkerJoin on
Worker = HcmWorker.RecIdOne or more HcmEmployment records → exactly one HcmWorker record
HcmEEOEstablishment→HcmEEOEstablishmentJoin on
EEOEstablishment = HcmEEOEstablishment.RecIdMany HcmEmployment records → zero or one HcmEEOEstablishment record
Get this data out
Tables are not exposed directly. These public entities read from HcmEmployment; use one of them in Power BI, Power Platform or a data management project.
HcmEmploymentV2Entity· 8 fields from this tableHcmEmploymentEntity· 7 fields from this tableHcmEmploymentPerCompanyEntity· 7 fields from this tablePayrollEmployeeV2Entity· 5 fields from this tableVivaIntEssEmploymentLegalEntity· 4 fields from this tableHcmContractorV2Entity· 6 fields from this tableHcmEmployeeV2Entity· 6 fields from this tableBenefitEmploymentBenefitEntity· 4 fields from this tableHcmApplicantEntity· 3 fields from this tableHcmContractorEntity· 5 fields from this tableHcmEmployeeEntity· 5 fields from this tableHcmEmploymentContractorEntity· 4 fields from this tableHcmEmploymentDetailEntity· 3 fields from this tableHcmEmploymentEmployeeEntity· 2 fields from this tableHcmEmploymentTermEntity· 2 fields from this tableHcmFMLACaseAssociationEntity· 2 fields from this tableHcmOnboardingWorkerChecklistHeaderEntity· 2 fields from this tableHcmOnboardProcessHeaderDualWriteEntity· 4 fields from this tableHcmProcessTaskAssignmentEntity· 4 fields from this tableHcmWorkCalendarEmploymentEntity· 1 field from this tableHcmWorkerAdvHolderTableEntity· 3 fields from this tablePayrollEmployeeEntity· 4 fields from this tableVivaIntEssPersonalDetailsEntity· 2 fields from this tableHRAdminCompensationAssignmentCopilotEntity· 0 fields from this tableHRAdminLeaveEnrollmentCopilotEntity· 0 fields from this tableHrEssHcmProcessTaskAssignmentEntity· 0 fields from this tableDimAttributeEmployeeTable_RUEntity· 0 fields from this tableEssWorkCalendarDayEntity· 1 field from this tableHrEssPersonalDetailsCopilotEntity· 0 fields from this table
Need help with HcmEmployment in a report, an integration or a migration? Talk to Dr Dynamics.