Data entity
HcmEmploymentV2Entity
Lists employments of workers in each legal entity, identified by an employment ID. It shows start and end dates, worker type, regulatory establishment, default dimension display value and the worker calendar assigned. It differs from the earlier employment entity by using the employment ID in its key.
- Entity name
HcmEmploymentV2Entity- Public entity name
EmploymentV2- OData collection
EmploymentsV2- Category
Not set- Module
HRM- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
PersonnelNumber, LegalEntityId, EmploymentId- Staging table
HcmEmploymentV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/EmploymentsV2- Dataverse virtual table
mserp_hcmemploymentv2entity. 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 (14)
| 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 | |
EmploymentIdIdentifier of the employment. | String (40)HcmEmploymentId | No | Yes | HcmEmployment.EmploymentId | |
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 HcmEmploymentV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.