Generate payroll entities
Important
The functionality noted in this article is currently available in both the stand-alone Dynamics 365 Human Resources and the merged Finance infrastructure. Navigation might be different than noted while we make updates. If you need to find a specific page, you can use Search.
Use this OData function to generate the entities needed for payroll integration. If any changes are made to these entities in Human Resources, such as adding custom fields, this function can be called again to refresh the metadata of each entity. The response contains an operation ID that you can monitor so you know when the generation process has completed.
Request
GET [Organizaton URI]/api/data/v9.1/RefreshHumanResourcesVirtualEntities
body
{
"PhysicalNames" : ["PayrollEmployeeEntity", "HcmWorkerBaseEntity", "PayrollPositionEntity", "PayrollPositionJobEntity", "PayrollWorkerAddressEntity", "HcmJobDetailEntity", "HcmCompFixedPlanTableEntity", "PayrollFixedCompensationPlanEntity", "HcmEmploymentDetailEntity"]
}
Response
{
"AsyncOperationId": "8b98d338-f939-4c86-9a91-80b76b6ab2ea"
}
Review payroll entities
Use this API to retrieve a list of the entities that have been successfully generated and are ready for use.
Request
GET [Organizaton URI]/api/data/v9.1/mshr_hrvirtualentitycatalogs?$filter=mshr_hasbeengenerated eq true
Response
{
"value": [
{
"mshr_physicalname": "PayrollWorkerAddressEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-1c00-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "HcmJobDetailEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-6400-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "HcmCompFixedPlanTableEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-6b00-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "PayrollEmployeeEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-6d00-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "HcmEmploymentDetailEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-7e00-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "PayrollFixedCompensationPlanEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-9300-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "HcmWorkerBaseEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-c000-005001000000",
"mshr_refresh": null
},
{
"mshr_physicalname": "PayrollPositionJobEntity",
"mshr_hasbeengenerated": true,
"mshr_hrvirtualentitycatalogid": "00000603-0000-0000-e700-005001000000",
"mshr_refresh": null
}
]
}
Feedback
Submit and view feedback for