Data entity
PayrollPositionDetailsEntity
Payroll details for positions, valid for a date range and keyed by position, start date and end date. It includes the pay cycle, schedule, annual regular hours, pay period overtime hours and options to generate salary or earnings. It also links to an earning code, a benefit and the paying company.
- Entity name
PayrollPositionDetailsEntity- Public entity name
PayrollPositionDetail- OData collection
PayrollPositionDetails- Category
Reference- Module
Payroll- Read-only
No- Data management enabled
Yes- Configuration key
HRMAdministrationPayrollInfo- Keys
PositionId, ValidFrom, ValidTo- Staging table
PayrollPositionDetailsStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PayrollPositionDetails- Dataverse virtual table
mserp_payrollpositiondetailsentity. 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
PayrollPositionDetails· rootBenefit(tableHcmBenefit) · OuterJoin toPayrollPositionDetails· read-onlyComapnyInfo(tableCompanyInfo) · InnerJoin toPayrollPositionDetails· read-onlyPayrollEarningCode· OuterJoin toPayrollPositionDetails· read-onlyPayrollPayCycle· InnerJoin toPayrollPositionDetails· read-onlyPosition(tableHcmPosition) · InnerJoin toPayrollPositionDetails· read-only
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
IsSalaryGeneratedYes/no flag for generating salary. | EnumNoYesId
| No | Yes | PayrollPositionDetails.AutoGenerateSalary | |
DefaultEarningCodeDefault earning code for the position, pointing to an earning code record. | Int64PayrollPositionEarningRecId | No | No (private) | PayrollEarningCode.RecId | PayrollPositionDetails.DefaultEarningCode |
InsuranceBenefitInsurance benefit used by default, pointing to a benefit record. | Int64HcmBenefitRecId | No | No (private) | HcmBenefit.RecId | PayrollPositionDetails.DefaultGLIBenefit |
AreEarningsGeneratedFromScheduleYes/no flag for generating earnings from the schedule. | EnumNoYesId
| No | Yes | PayrollPositionDetails.GenerateEarningsFromSchedule | |
LegalEntityThe legal entity that pays for the position, pointing to a company record. | Int64LegalEntityRecId | Yes | No (private) | CompanyInfo.RecId | PayrollPositionDetails.PaidByLegalEntity |
PayCyclePay cycle used for the position, pointing to a pay cycle record. | Int64PayrollPayCycleRecId | Yes | No (private) | PayrollPayCycle.RecId | PayrollPositionDetails.PayCycle |
AnnualRegularHoursAnnual regular hours for the position. | RealPayrollHours | No | Yes | PayrollPositionDetails.PayrollNormalHours | |
PayPeriodOvertimeHoursOvertime hours for each pay period. | RealPayrollHours | No | Yes | PayrollPositionDetails.PayrollOvertimeHours | |
PositionsThe position these details belong to, pointing to a position record. | Int64HcmPositionRecId | Yes | No (private) | HcmPosition.RecId | PayrollPositionDetails.Position |
ScheduleID of the work calendar used as the schedule. | StringCalendarId | No | Yes | WorkCalendarTable.CalendarId | PayrollPositionDetails.Schedule |
ScheduleLegalEntityCompany of the work calendar used as the schedule. | StringDataAreaId | No | No (private) | PayrollPositionDetails.ScheduleDataAreaId | |
ValidFromFirst date on which this record is valid. | DateValidFromDate | No | Yes | PayrollPositionDetails.ValidFrom | |
ValidToLast date on which this record is valid. | DateValidToDate | No | Yes | PayrollPositionDetails.ValidTo | |
BenefitIdShort code that identifies the benefit. | String (20)HcmBenefitId | No | Yes | HcmBenefit.BenefitId | |
PaidByLegalEntityCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
DefaultEarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | No | Yes | PayrollEarningCode.EarningCode | |
PayCycleIdUnique ID of the pay cycle. | String (15)PayrollPayCycleId | Yes | Yes | PayrollPayCycle.PayCycleId | |
PositionIdCode that identifies the position. | String (25)HcmPositionId | Yes | Yes | HcmPosition.PositionId |
Foreign keys (6)
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.
DefaultEarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Relation also requires PayrollEarningCode.QuantityUnit = PayrollQuantityUnit::Hours.
Many PayrollPositionDetails records → zero or one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, PayrollEarningCodeEntity, BenefitDeductionEntity
InsuranceBenefit→HcmBenefit.RecId(key of HcmBenefit)Many PayrollPositionDetails records → zero or one HcmBenefit record
HcmBenefit details: see HcmBenefitEligibilityOverrideEntity, HcmBenefitEntity, PayrollBenefitEarningBasisEntity
LegalEntity→CompanyInfo.RecId(key of CompanyInfo)Many PayrollPositionDetails records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
PayCycle→PayrollPayCycle.RecId(key of PayrollPayCycle)Many PayrollPositionDetails records → exactly one PayrollPayCycle record
PayrollPayCycle details: see PayrollPayCycleEntity, HcmPayrollCalculationFrequencyPayPeriodEntity, HcmPositionEntity
Positions→HcmPosition.RecId(key of HcmPosition)Many PayrollPositionDetails records → exactly one HcmPosition record
HcmPosition details: see HcmPositionTimelineEntity, HcmJobPositionDualWriteEntity, HcmPositionEntity
Schedule→WorkCalendarTable.CalendarId(key of WorkCalendarTable)Join on all of:
Schedule=WorkCalendarTable.CalendarId,ScheduleLegalEntity=WorkCalendarTable.dataAreaIdMany PayrollPositionDetails records → exactly one WorkCalendarTable record
WorkCalendarTable details: see WorkCalendarEntity, HcmWorkCalendarEmploymentEntity, ResResourceSetupDataEntity
Need help with PayrollPositionDetailsEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.