Data entity
PayrollEmployeeV2Entity
Read-only list of employments, keyed by personnel number, company and employment start date. It combines worker, person and payroll details such as birth date, gender, worker type and identification. It also shows a ready-to-pay flag for each employment.
- Entity name
PayrollEmployeeV2Entity- Public entity name
PayrollEmployeeV2- OData collection
PayrollEmployeesV2- Category
Not set- Module
Payroll- Read-only
Yes- Data management enabled
Yes- Configuration key
None- Keys
PersonnelNumber, LegalEntityId, EmploymentStartDate- Staging table
PayrollEmployeeV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PayrollEmployeesV2- Dataverse virtual table
mserp_payrollemployeev2entity. 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· root · read-onlyHcmWorker· InnerJoin toHcmEmployment· read-onlyHcmPersonPrivateDetails· OuterJoin toHcmWorker· read-onlyPayrollPersonPrivateDetailsExistsView· OuterJoin toHcmWorker· read-onlyDirPerson· InnerJoin toHcmWorker· read-onlyCompanyInfo· InnerJoin toHcmEmployment· read-onlyHRMParameters· InnerJoin toCompanyInfo· read-onlyHcmWorkerPayrollInfo· OuterJoin toHcmEmployment· read-onlyCompanyInfo_Payroll(tableCompanyInfo) · InnerJoin toHcmWorkerPayrollInfo· read-onlyHRMParameters_Payroll(tableHRMParameters) · InnerJoin toCompanyInfo_Payroll· read-only
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
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 | |
PersonPoints to the person record that holds the worker's name. | Int64DirPartyRecId | Yes | No (private) | DirPerson.RecId | HcmWorker.Person |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
EmploymentStartDateFirst date and time of the employment. | UtcDateTimeHcmEmploymentValidFrom | No | Yes | HcmEmployment.ValidFrom | |
EmploymentEndDateLast date and time of the employment. | UtcDateTimeHcmEmploymentValidTo | No | Yes | HcmEmployment.ValidTo | |
EmploymentIdIdentifier of the employment. | String (40)HcmEmploymentId | No | Yes | HcmEmployment.EmploymentId | |
BirthDateThe person's date of birth. | DateHcmPersonBirthDate | No | Yes | HcmPersonPrivateDetails.BirthDate | |
GenderGender of the person. Values include male, female and non-specific. | Enum
| No | Yes | HcmPersonPrivateDetails.Gender | |
EmploymentTypeTells whether the worker is an employee or a contractor. | Enum
| Yes | Yes | HcmEmployment.EmploymentType | |
IdentificationTypeIdType of identification document held for the person, such as the kind of ID used. | String (15)HcmIdentificationTypeId | No | Yes | computed | |
IdentificationNumberNumber of the person's identification document. | String (35)HcmIdentificationNumber | No | Yes | computed | |
PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | Yes | DirPartyTable.PartyNumber | |
ReadyToPayYes/No flag showing whether the worker is marked as ready to be paid. | EnumPayrollReadyToPayNoYesId
| No | Yes | HcmWorkerPayrollInfo.ReadyToPay |
Foreign keys (2)
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.
LegalEntity→CompanyInfo.RecId(key of CompanyInfo)Many HcmEmployment records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
Person→DirPerson.RecId(key of DirPerson)Zero or one HcmWorker record → exactly one DirPerson record
DirPerson details: see CustCustomerBaseEntity, CustFoundationEntity, DirPartyCDSEntity
Need help with PayrollEmployeeV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.