Data entity
PayrollEarningCodeEntity
Holds earning codes, one record per code. It includes the description, unit of measure, rate basis, amount or multiplier, tax method and tax group. It also has valid-from and valid-to dates, an earning code group, and settings for retroactive earnings and gross-up. It is a reference entity.
- Entity name
PayrollEarningCodeEntity- Public entity name
EarningCode- OData collection
EarningCodes- Category
Reference- Module
Payroll- Read-only
No- Data management enabled
Yes- Configuration key
HRMAdministrationPayrollInfo- Keys
EarningCode- Staging table
PayrollEarningCodeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/EarningCodes- Dataverse virtual table
mserp_payrollearningcodeentity. 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
PayrollEarningCode· rootPayrollEarningCodeDetail· OuterJoin toPayrollEarningCodeEarningCodeGroup(tablePayrollEarningCodeGroup) · OuterJoin toPayrollEarningCode· read-onlyGrossUpEarningCode(tablePayrollEarningCode) · OuterJoin toPayrollEarningCode· read-onlyRetroactiveEarningCode(tablePayrollEarningCode) · OuterJoin toPayrollEarningCode· read-onlyTaxGroup(tablePayrollTaxGroup) · OuterJoin toPayrollEarningCode· read-only
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DescriptionShort text describing the earning code. | String (60)PayrollEarningCodeDescription | Yes | Yes | PayrollEarningCode.Description | |
EarningCodeUnique ID of the earning code. | String (50)PayrollEarningCodeId | Yes | Yes | PayrollEarningCode.EarningCode | |
IncludeInPaymentTypePayment run type the earning is included in, such as primary, additional, gross up or automatic. | Enum
| No | Yes | PayrollEarningCode.IncludeInPaymentType | |
IsProductiveYes/no flag showing whether the earning is productive. | EnumNoYesId
| No | Yes | PayrollEarningCode.IsProductive | |
QuantityUnitUnit used to measure the earning: hours, pieces or each. | Enum
| No | Yes | PayrollEarningCode.QuantityUnit | |
TrackFMLAHoursYes/no flag showing whether this earning reduces the remaining FMLA time. | Enum
| No | Yes | PayrollEarningCode.TrackFMLAHours | |
ValidFromFirst date on which this record is valid. | DateValidFromDate | No | Yes | PayrollEarningCodeDetail.ValidFrom | |
ValidToLast date on which this record is valid. | DateValidToDate | No | Yes | PayrollEarningCodeDetail.ValidTo | |
DefaultFormulaDefault amount or multiplier for the earning code. | RealPayrollEarningCodeDefaultFormula | No | Yes | PayrollEarningCodeDetail.DefaultFormula | |
RateBasisBasis of the rate, such as hourly, monthly, flat amount or percent of earnings. | Enum
| No | Yes | PayrollEarningCodeDetail.RateBasis | |
FringeBenefitTypeType of fringe benefit: not applicable, standard or group term life. | Enum
| No | Yes | PayrollEarningCode.FringeBenefitType | |
TaxMethodTax method for the earning: regular, supplemental, exempt or custom. | Enum
| No | Yes | PayrollEarningCode.TaxMethod | |
EarningCodeGroupIdUnique ID of the earning code group. | String (70)PayrollEarningCodeGroupId | No | Yes | PayrollEarningCodeGroup.GroupId | |
EarningCodeGroupEarning code group used as the basis, pointing to an earning code group record. | Int64PayrollEarningCodeGroupRecId | No | No (private) | PayrollEarningCodeGroup.RecId | PayrollEarningCode.BasisEarningGroup |
GrossUpEarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | No | Yes | PayrollEarningCode.EarningCode | |
GrossUpEarningCodeAnother earning code used for gross up, pointing to an earning code record. | Int64PayrollEarningCodeRecId | No | No (private) | PayrollEarningCode.RecId | PayrollEarningCode.GrossUpEarningCode |
IsBaseEarningsComponentYes/no flag showing whether the earning is a base earnings component. | EnumNoYesId
| No | Yes | PayrollEarningCode.IsBaseEarningsComponent | |
IsRetroactiveYes/no flag showing whether this is a retroactive earning. | EnumNoYesId
| No | Yes | PayrollEarningCode.IsRetroactive | |
RetroactiveEarningCodeEarning code used for retroactive earnings, pointing to an earning code record. | Int64PayrollEarningCodeRecId | No | No (private) | PayrollEarningCode.RecId | PayrollEarningCode.RetroactiveEarningCode |
RetroactiveEarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | No | Yes | PayrollEarningCode.EarningCode | |
BaseDefinitionBase definition for the earning: not applicable, base time, time and a half or double time. | Enum
| No | Yes | PayrollEarningCode.BaseDefinition | |
IsEarningStatementLineRateEditableYes/no flag showing whether rates on earning statement lines can be edited. | EnumNoYesId
| No | Yes | PayrollEarningCode.IsEarningStatementLineRateEditable | |
TaxGroupTax group assigned to the earning code, pointing to a tax group record. | Int64PayrollTaxGroupRecId | No | No (private) | PayrollTaxGroup.RecId | PayrollEarningCode.TaxGroup |
TaxGroupIdID of the tax group. | String (70)PayrollTaxGroupId | No | Yes | PayrollTaxGroup.GroupId |
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.
EarningCodeGroup→PayrollEarningCodeGroup.RecId(key of PayrollEarningCodeGroup)Many PayrollEarningCode records → zero or one PayrollEarningCodeGroup record
PayrollEarningCodeGroup details: see PayrollEarningCodeGroupEntity, HcmTotalCompStatementSectionEarningEntity, PayrollAccrualBasisEarningCodeEntity
GrossUpEarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many PayrollEarningCode records → zero or one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, BenefitDeductionEntity, HcmPositionEntity
RetroactiveEarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many PayrollEarningCode records → zero or one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, BenefitDeductionEntity, HcmPositionEntity
TaxGroup→PayrollTaxGroup.RecId(key of PayrollTaxGroup)Many PayrollEarningCode records → exactly one PayrollTaxGroup record
PayrollTaxGroup details: see PayrollTaxGroupEntity, HcmTotalCompStatementSectionTaxEntity, PayrollBenefitTaxRuleUSEntity
Need help with PayrollEarningCodeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.