Data entity
HcmEmploymentPerCompanyEntity
Combines employment records with their employment detail, employee detail and reason code in one row per employment. It shows dates, termination date, notice period, probation period, worker type, regulatory establishment and default dimension display value. The key is personnel number and employment start date.
- Entity name
HcmEmploymentPerCompanyEntity- Public entity name
EmploymentPerCompany- OData collection
EmploymentsPerCompany- Category
Not set- Module
HRM- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
PersonnelNumber, EmploymentStartDate- Staging table
HcmEmploymentPerCompanyStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/EmploymentsPerCompany- Dataverse virtual table
mserp_hcmemploymentpercompanyentity. 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-onlyHcmEmploymentDetail· OuterJoin toHcmEmploymentHcmReasonCode· OuterJoin toHcmEmploymentDetail· read-onlyHcmEmploymentEmployee· OuterJoin toHcmEmployment
Fields (26)
| 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 | |
TransitionDateTermination date of the employment. | UtcDateTimeHcmEmploymentTransitionDateTime | No | Yes | HcmEmploymentDetail.TransitionDate | |
AdjustedWorkerStartDateAdjusted start date of the worker. | UtcDateTimeHcmEmploymentAdjStartDateTime | No | Yes | HcmEmploymentDetail.AdjustedWorkerStartDate | |
EmployerNoticeAmountLength of notice the employer gives, counted in the employer unit. | IntegerHcmEmployerNoticeAmount | No | Yes | HcmEmploymentDetail.EmployerNoticeAmount | |
EmployerUnitOfNoticeUnit for the employer notice, either Week or Month. | EnumHcmEmployerUnitOfNotice
| No | Yes | HcmEmploymentDetail.EmployerUnitOfNotice | |
ValidFromDate and time from which this record is valid. | UtcDateTimeValidFromDateTime | No | Yes | HcmEmploymentDetail.ValidFrom | |
ValidToDate and time until which this record is valid. | UtcDateTimeValidToDateTime | No | Yes | HcmEmploymentDetail.ValidTo | |
ProbationEndDateDate and time when the probation period ends. | UtcDateTimeHcmEmploymentProbationEndDateTime | No | Yes | HcmEmploymentEmployee.ProbationEndDate | |
EmploymentEmployeeValidFromDate and time from which this record is valid. | UtcDateTimeValidFromDateTime | No | Yes | HcmEmploymentEmployee.ValidFrom | |
EmploymentEmployeeValidToDate and time until which this record is valid. | UtcDateTimeValidToDateTime | No | Yes | HcmEmploymentEmployee.ValidTo | |
WorkerUnitOfNoticeUnit for the worker notice, either Week or Month. | EnumHcmWorkerUnitOfNotice
| No | Yes | HcmEmploymentDetail.WorkerUnitOfNotice | |
WorkerStartDateStart date of the worker. | UtcDateTimeHcmEmploymentStartDateTime | No | Yes | HcmEmploymentDetail.WorkerStartDate | |
WorkerNoticeAmountLength of notice the worker gives, counted in the worker unit. | IntegerHcmWorkerNoticeAmount | No | Yes | HcmEmploymentDetail.WorkerNoticeAmount | |
LastDateWorkedLast date the worker worked. | UtcDateTimeHcmEmploymentLastWorkedDateTime | No | Yes | HcmEmploymentDetail.LastDateWorked | |
TransitionReasonCodeNameCode that identifies the reason code. | String (15)HcmReasonCodeId | No | Yes | HcmReasonCode.ReasonCodeId | |
TransitionReasonCodePoints to the reason code for the termination. | Int64HcmReasonCodeRecId | No | Yes | HcmReasonCode.RecId | HcmEmploymentDetail.TransitionReasonCode |
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
TransitionReasonCode→HcmReasonCode.RecId(key of HcmReasonCode)Many HcmEmploymentDetail records → zero or one HcmReasonCode record
HcmReasonCode details: see HcmReasonCodeEntity, BenefitParametersV2Entity, BenefitPlanEmployeeV2Entity
Need help with HcmEmploymentPerCompanyEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.