Data entity
HcmEmploymentEntity
Lists employments of workers in each legal entity, with start and end dates. It also shows the worker type, default dimension display value, regulatory establishment and the worker calendar assigned. The key is personnel number, legal entity, and employment start and end dates.
- Entity name
HcmEmploymentEntity- Public entity name
Employment- OData collection
Employments- Category
Not set- Module
HRM- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
PersonnelNumber, LegalEntityId, EmploymentStartDate, EmploymentEndDate- Staging table
HcmEmploymentStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/Employments- Dataverse virtual table
mserp_hcmemploymententity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
HcmEmployment· rootCompanyInfo_FK(tableCompanyInfo) · InnerJoin toHcmEmployment· read-onlyHcmEEOEstablishment· OuterJoin toHcmEmployment· read-onlyHcmWorker_FK(tableHcmWorker) · InnerJoin toHcmEmployment· read-onlyDimensionDAVS(tableDimensionSetEntity) · OuterJoin toHcmEmployment· read-onlyWorkCalendarEmployment· OuterJoin toHcmEmployment
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DimensionPoints to the set of dimension values used by default for this employment. | Int64HcmDefaultDimension | No | No (private) | DimensionAttributeValueSet.RecId | HcmEmployment.DefaultDimension |
DimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
RegulatoryEstablishmentPoints to the regulatory establishment linked to this employment. | Int64HcmEEOEstablishmentRecId | No | No (private) | HcmEEOEstablishment.RecId | HcmEmployment.EEOEstablishment |
RegulatoryEstablishmentIdName that identifies the regulatory establishment. | String (30)HcmEEOEstablishmentName | No | Yes | HcmEEOEstablishment.EEOEstablishment | |
WorkerTypeTells whether the worker is an employee or a contractor. | Enum
| Yes | Yes | HcmEmployment.EmploymentType | |
LegalEntityPoints to the company (legal entity) that employs the worker. | Int64CompanyInfoRecId | Yes | No (private) | CompanyInfo.RecId | HcmEmployment.LegalEntity |
LegalEntityIdCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
EmploymentStartDateFirst date and time of the employment. | UtcDateTimeHcmEmploymentValidFrom | Yes | Yes | HcmEmployment.ValidFrom | |
EmploymentEndDateLast date and time of the employment. | UtcDateTimeHcmEmploymentValidTo | No | Yes | HcmEmployment.ValidTo | |
WorkerPoints to the worker who holds this employment. | Int64HcmWorkerRecId | Yes | No (private) | HcmWorker.RecId | HcmEmployment.Worker |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | Yes | Yes | HcmWorker.PersonnelNumber | |
CalendarIdCalendar assigned to the employment. | StringCalendarId | No | Yes | WorkCalendarTable.CalendarId | WorkCalendarEmployment.CalendarId |
CalendarLegalEntityIdCompany that owns the assigned calendar. | StringDataAreaId | No | Yes | WorkCalendarEmployment.CalendarDataAreaId |
Foreign keys (5)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Dimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many HcmEmployment records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
RegulatoryEstablishment→HcmEEOEstablishment.RecId(key of HcmEEOEstablishment)Many HcmEmployment records → zero or one HcmEEOEstablishment record
HcmEEOEstablishment details: see HcmRegulatoryEstablishmentEntity, HcmContractorEntity, HcmContractorV2Entity
LegalEntity→CompanyInfo.RecId(key of CompanyInfo)Many HcmEmployment records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
Worker→HcmWorker.RecId(key of HcmWorker)One or more HcmEmployment records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
CalendarId→WorkCalendarTable.CalendarId(key of WorkCalendarTable)Join on all of:
CalendarId=WorkCalendarTable.CalendarId,CalendarLegalEntityId=WorkCalendarTable.dataAreaIdMany WorkCalendarEmployment records → zero or one WorkCalendarTable record
WorkCalendarTable details: see WorkCalendarEntity, HcmWorkCalendarEmploymentEntity, ResResourceSetupDataEntity
Need help with HcmEmploymentEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.