Data entity
PayrollWorkerPositionEarningCodeEntity
Earning codes assigned to a worker for a position. Each record has an amount, a calculation frequency and a validity period. Keyed by worker, earning code, position and the valid-from and valid-to dates.
- Entity name
PayrollWorkerPositionEarningCodeEntity- Public entity name
WorkerPositionEarningCode- OData collection
WorkerPositionEarningCodes- Category
Reference- Module
Payroll- Read-only
No- Data management enabled
Yes- Configuration key
HRMAdministrationPayrollInfo- Keys
PersonnelNumber, EarningCodeId, PositionId, ValidFrom, ValidTo- Staging table
PayrollWorkerPositionEarningCodeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/WorkerPositionEarningCodes- Dataverse virtual table
mserp_payrollworkerpositionearningcodeentity. 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
PayrollWorkerPositionEarningCode· rootPayrollEarningCode· InnerJoin toPayrollWorkerPositionEarningCode· read-onlyHcmPosition· InnerJoin toPayrollWorkerPositionEarningCode· read-onlyHcmWorker· OuterJoin toPayrollWorkerPositionEarningCode· read-onlyPayrollCalculationFrequency· OuterJoin toPayrollWorkerPositionEarningCode· read-only
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
FrequencyPoints to the calculation frequency used for this earning code. | Int64PayrollCalculationFrequencyRecId | No | No (private) | PayrollCalculationFrequency.RecId | PayrollWorkerPositionEarningCode.CalculationFrequency |
EarningCodePoints to the earning code assigned to the worker and position. | Int64PayrollEarningCodeRecId | Yes | No (private) | PayrollEarningCode.RecId | PayrollWorkerPositionEarningCode.EarningCode |
AmountAmount linked to the earning code for this worker and position. The currency is not stated in the metadata.low confidence | RealAmountCur | Yes | Yes | PayrollWorkerPositionEarningCode.Formula | |
PositionPoints to the position the earning code applies to. | Int64HcmPositionRecId | Yes | No (private) | HcmPosition.RecId | PayrollWorkerPositionEarningCode.Position |
ValidFromFirst date on which this record is valid. | DateValidFromDate | Yes | Yes | PayrollWorkerPositionEarningCode.ValidFrom | |
ValidToLast date on which this record is valid. | DateValidToDate | Yes | Yes | PayrollWorkerPositionEarningCode.ValidTo | |
WorkerPoints to the worker who receives the earning code. | Int64HcmWorkerRecId | No | No (private) | HcmWorker.RecId | PayrollWorkerPositionEarningCode.Worker |
EarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | Yes | Yes | PayrollEarningCode.EarningCode | |
PositionIdCode that identifies the position. | String (25)HcmPositionId | Yes | Yes | HcmPosition.PositionId | |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | Yes | Yes | HcmWorker.PersonnelNumber | |
FrequencyIdUnique ID of the calculation frequency. | String (15)PayrollCalculationFrequencyId | No | Yes | PayrollCalculationFrequency.CalculationFrequencyId |
Foreign keys (4)
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.
Frequency→PayrollCalculationFrequency.RecId(key of PayrollCalculationFrequency)Many PayrollWorkerPositionEarningCode records → zero or one PayrollCalculationFrequency record
PayrollCalculationFrequency details: see HcmPayrollCalculationFrequencyEntity, PayrollBenefitDetailEntity, HcmPayrollCalculationFrequencyPayPeriodEntity
EarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many PayrollWorkerPositionEarningCode records → exactly one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, PayrollEarningCodeEntity, BenefitDeductionEntity
Position→HcmPosition.RecId(key of HcmPosition)Many PayrollWorkerPositionEarningCode records → exactly one HcmPosition record
HcmPosition details: see HcmPositionTimelineEntity, HcmJobPositionDualWriteEntity, HcmPositionEntity
Worker→HcmWorker.RecId(key of HcmWorker)Many PayrollWorkerPositionEarningCode records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with PayrollWorkerPositionEarningCodeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.