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 · root
  • PayrollEarningCodeDetail · OuterJoin to PayrollEarningCode
  • EarningCodeGroup (table PayrollEarningCodeGroup) · OuterJoin to PayrollEarningCode · read-only
  • GrossUpEarningCode (table PayrollEarningCode) · OuterJoin to PayrollEarningCode · read-only
  • RetroactiveEarningCode (table PayrollEarningCode) · OuterJoin to PayrollEarningCode · read-only
  • TaxGroup (table PayrollTaxGroup) · OuterJoin to PayrollEarningCode · read-only

Fields (24)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
DescriptionShort text describing the earning code.String (60)
PayrollEarningCodeDescription
YesYesPayrollEarningCode.Description
EarningCodeUnique ID of the earning code.String (50)
PayrollEarningCodeId
YesYesPayrollEarningCode.EarningCode
IncludeInPaymentTypePayment run type the earning is included in, such as primary, additional, gross up or automatic.Enum
PayrollIncludeInPaymentType
  • Primary 1
  • Additional 2
  • PrimaryAndAdditional 3
  • GrossUp 4
  • Auto 5
NoYesPayrollEarningCode.IncludeInPaymentType
IsProductiveYes/no flag showing whether the earning is productive.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningCode.IsProductive
QuantityUnitUnit used to measure the earning: hours, pieces or each.Enum
PayrollQuantityUnit
  • Hours 1
  • Pieces 2
  • Each 3
NoYesPayrollEarningCode.QuantityUnit
TrackFMLAHoursYes/no flag showing whether this earning reduces the remaining FMLA time.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningCode.TrackFMLAHours
ValidFromFirst date on which this record is valid.Date
ValidFromDate
NoYesPayrollEarningCodeDetail.ValidFrom
ValidToLast date on which this record is valid.Date
ValidToDate
NoYesPayrollEarningCodeDetail.ValidTo
DefaultFormulaDefault amount or multiplier for the earning code.Real
PayrollEarningCodeDefaultFormula
NoYesPayrollEarningCodeDetail.DefaultFormula
RateBasisBasis of the rate, such as hourly, monthly, flat amount or percent of earnings.Enum
PayrollRateBasis
  • Hourly 1
  • PayPeriod 2
  • Monthly 3
  • Annually 4
  • FlatAmount 5
  • Retroactive 6
  • RegularRatePay 99
  • PercentOfEarnings 7
  • HoursOfEarnings 8
NoYesPayrollEarningCodeDetail.RateBasis
FringeBenefitTypeType of fringe benefit: not applicable, standard or group term life.Enum
PayrollFringeBenefitType
  • NotApplicable 1
  • Standard 2
  • GroupTermLife 3
NoYesPayrollEarningCode.FringeBenefitType
TaxMethodTax method for the earning: regular, supplemental, exempt or custom.Enum
PayrollTaxMethod
  • Regular 1
  • Supplemental 2
  • Exempt 3
  • Custom 4
NoYesPayrollEarningCode.TaxMethod
EarningCodeGroupIdUnique ID of the earning code group.String (70)
PayrollEarningCodeGroupId
NoYesPayrollEarningCodeGroup.GroupId
EarningCodeGroupEarning code group used as the basis, pointing to an earning code group record.Int64
PayrollEarningCodeGroupRecId
NoNo (private)PayrollEarningCodeGroup.RecIdPayrollEarningCode.BasisEarningGroup
GrossUpEarningCodeIdUnique ID of the earning code.String (50)
PayrollEarningCodeId
NoYesPayrollEarningCode.EarningCode
GrossUpEarningCodeAnother earning code used for gross up, pointing to an earning code record.Int64
PayrollEarningCodeRecId
NoNo (private)PayrollEarningCode.RecIdPayrollEarningCode.GrossUpEarningCode
IsBaseEarningsComponentYes/no flag showing whether the earning is a base earnings component.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningCode.IsBaseEarningsComponent
IsRetroactiveYes/no flag showing whether this is a retroactive earning.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningCode.IsRetroactive
RetroactiveEarningCodeEarning code used for retroactive earnings, pointing to an earning code record.Int64
PayrollEarningCodeRecId
NoNo (private)PayrollEarningCode.RecIdPayrollEarningCode.RetroactiveEarningCode
RetroactiveEarningCodeIdUnique ID of the earning code.String (50)
PayrollEarningCodeId
NoYesPayrollEarningCode.EarningCode
BaseDefinitionBase definition for the earning: not applicable, base time, time and a half or double time.Enum
PayrollBaseDefinition
  • NotApplicable 1
  • BaseTime 2
  • TimeAndHalf 3
  • DoubleTime 4
NoYesPayrollEarningCode.BaseDefinition
IsEarningStatementLineRateEditableYes/no flag showing whether rates on earning statement lines can be edited.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningCode.IsEarningStatementLineRateEditable
TaxGroupTax group assigned to the earning code, pointing to a tax group record.Int64
PayrollTaxGroupRecId
NoNo (private)PayrollTaxGroup.RecIdPayrollEarningCode.TaxGroup
TaxGroupIdID of the tax group.String (70)
PayrollTaxGroupId
NoYesPayrollTaxGroup.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.

Need help with PayrollEarningCodeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk