Table
PayrollWorkerPositionEarningCode
Earning code related to worker and position
Connects a worker and a position to an earning code for a date range. It also holds an amount and a calculation frequency. The key is worker, earning code, position and the valid-from and valid-to dates.
- Table name
PayrollWorkerPositionEarningCode- Module
Cross-module and platform- Table group
Group- Table type
Regular- Data per company
No- Configuration key
HRMAdministrationPayrollInfo- Primary index
None- Replacement key
WorkerPositionEarningCodeIdx- Key fields
Worker, EarningCode, Position, ValidFrom, ValidTo- Model
PersonnelManagement
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkerPoints to the worker who receives the earning code. | Int64HcmWorkerRecId | No | HcmWorker.RecId | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity |
EarningCodePoints to the earning code assigned to the worker and position. | Int64PayrollEarningCodeRecId | Yes | PayrollEarningCode.RecId | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity |
PositionPoints to the position the earning code applies to. | Int64HcmPositionRecId | Yes | HcmPosition.RecId | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity |
ValidFromFirst date on which this record is valid. | DateValidFromDate | Yes | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity | |
ValidToLast date on which this record is valid. | DateValidToDate | Yes | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity | |
CalculationFrequencyPoints to the calculation frequency used for this earning code. | Int64PayrollCalculationFrequencyRecId | No | PayrollCalculationFrequency.RecId | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity |
FormulaAmount linked to the earning code for this worker and position. The currency is not stated in the metadata.low confidence | RealAmountCur | Yes | PayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
EarningCodeIdxNot unique.
WorkerPositionEarningCodeIdxReplacement keyWorker,EarningCode,Position,ValidFrom,ValidToUnique, alternate key.
PayrollCalculationFrequencyIdxNot unique.
Relations (5)
Each relation joins PayrollWorkerPositionEarningCode to another table on the fields shown.
EarningCode→PayrollEarningCodeJoin on
EarningCode = PayrollEarningCode.RecIdMany PayrollWorkerPositionEarningCode records → exactly one PayrollEarningCode record
HCMPosition→HcmPositionJoin on
Position = HcmPosition.RecIdMany PayrollWorkerPositionEarningCode records → exactly one HcmPosition record
HcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany PayrollWorkerPositionEarningCode records → exactly one HcmWorker record
PayrollCalculationFrequency→PayrollCalculationFrequencyJoin on
CalculationFrequency = PayrollCalculationFrequency.RecIdMany PayrollWorkerPositionEarningCode records → zero or one PayrollCalculationFrequency record
PayrollEarningCodeDetail→PayrollEarningCodeDetailJoin on
EarningCode = PayrollEarningCodeDetail.EarningCodeMany PayrollWorkerPositionEarningCode records → zero or one PayrollEarningCodeDetail record
Get this data out
Tables are not exposed directly. These public entities read from PayrollWorkerPositionEarningCode; use one of them in Power BI, Power Platform or a data management project.
PayrollWorkerPositionEarningCodeV2Entity· 7 fields from this tablePayrollWorkerPositionEarningCodeEntity· 7 fields from this table
Need help with PayrollWorkerPositionEarningCode in a report, an integration or a migration? Talk to Dr Dynamics.