Payroll position

Applies to these Dynamics 365 apps:
Human Resources

This topic provides details and an example query for the Payroll details for the Positions entity in Dynamics 365 Human Resources.

Properties

Property
Physical name
Type
Use Description
Annual regular hours
annualregularhours
Decimal
Read-only
Required
Annual regular hours defined on the position.
Payroll position details entity ID
payrollpositiondetailsentityid
Guid
Required
System generated.
A system-generated GUID value to uniquely identify the position.
Primary field
mshr_primaryfield
String
Required
System generated
Position job ID value
_mshr_fk_positionjob_id_value
GUID
Read-only
Required
Foreign key:mshr_PayrollPositionJobEntity of the mshr_payrollpositionjobentity
The ID of the job associated with the position.
Fixed compensation plan ID value
_mshr_fk_fixedcompplan_id_value
GUID
Read-only
Required
Foreign key: mshr_FixedCompPlan_id of mshr_payrollfixedcompensationplanentity
The ID of the fixed compensation plan associated with the position.
Pay cycle ID
mshr_primaryfield
String
Read-only
Required
The pay cycle defined on the position.
Paid by legal entity
paidbylegalentity
String
Read-only
Required
The legal entity defined on the positoin responsible for issuing payment.
Position ID
mshr_positionid
String
Read-only
Required
The ID of the position.
Valid to
validto
Date Time Offset
Read-only
Required
The date the position details are valid from.
Valid from
validfrom
Date Time Offset
Read-only
Required
The date the position details are valid to.

Query

Request

GET [Organizaton URI]/api/data/v9.1/mshr_payrollpositionentities?$filter=mshr_positionid eq @positionid and mshr_validfrom le @asofdate and mshr_validto ge @asofdate&@positionid='000276'&@asofdate=2021-04-01

Response

{
            "mshr_positionid": "000276",
            "mshr_paycycleid": "w",
            "mshr_annualregularhours": 3000,
            "mshr_paidbylegalentity": "USMF",
            "mshr_validfrom": "2021-03-14T00:00:00Z",
            "mshr_validto": "2154-12-31T00:00:00Z",
            "mshr_primaryfield": "000276 | 3/14/2021",
            "_mshr_fk_job_id_value": "00010094-0000-0000-df00-014105000000",
            "_mshr_fk_fixedcompplan_id_value": "0000029f-0000-0000-d5ff-004105000000",
            "mshr_payrollpositionentityid": "00010097-0000-0000-df00-014105000000"
}