Payroll worker address

Applies to these Dynamics 365 apps:
Human Resources

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

Properties

Property
Physical name
Type
Use Description
City
mshr_city
String
Read-only
Required
The city defined for the address.
Personnel number
mshr_personnelnumber
String
Read-only
Required
The employee's unique personnel number.
Country region
mshr_countryregionid
String
Read-only
Required
The country region defined for the address
Valid from
mshr_postaladdressvalidfrom
Date Time Offset
Read-only
Required
The date the address is valid from.
Worked in address
mshr_isworkedinaddressbr>Int32
Read-only
Required
Denotes if the address is where the employee works.
County
mshr_county
String
Read-only
Required
The county defined for the address.
Payroll worker address ID
mshr_payrollworkeraddressentityid
GUID
Required
System generated
A system-generated GUID value to uniquely identify the address.
Primary field
mshr_primaryfield
String
Read-only
Required
Street
mshr_street
String
Read-only
Required
The street defined for the address.
Valid to
mshr_postaladdressvalidto
Date Time Offset
Read-only
Required
The date the address is valid to.
Location ID
mshr_locationidbr>String
Read-only
Required
The ID for the address.
Postal code
mshr_zipcode
String
Read-only
Required
The identification number defined for the employee.
Lived in address
mshr_islivedinaddressbr>String
Read-only
Required
Denotes if the address is where the employee lives.
State
mshr_state
String
Read-only
Required
The state defined for the address.

Example query

Request

GET [Organizaton URI]/api/data/v9.1/mshr_payrollworkeraddressentities?$filter=mshr_personnelnumber eq @personnelnumber and mshr_postaladdressvalidfrom le @asofdate and mshr_postaladdressvalidto ge @asofdate&@personnelnumber='000041'&@asofdate=2021-04-01

Response

{
            "mshr_personnelnumber": "000041",
            "mshr_locationid": "000000538",
            "mshr_islivedinaddress": 200000001,
            "mshr_isworkedinaddress": 200000000,
            "mshr_countryregionid": "USA",
            "mshr_zipcode": "99025",
            "mshr_street": "6543 Cypress Ave",
            "mshr_city": "Tacoma",
            "mshr_state": "WA",
            "mshr_county": "KING",
            "mshr_postaladdressvalidfrom": "2012-09-20T20:14:27Z",
            "mshr_postaladdressvalidto": "2154-12-31T23:59:59Z",
            "mshr_primaryfield": "000041 | 000000538 | 9/20/2012 08:14:27 pm",
            "_mshr_fk_worker_id_value": "00000d3c-0000-0000-d5ff-004105000000",
            "mshr_payrollworkeraddressentityid": "000006f0-0000-0000-f90f-014105000000"

}