Data entity
PayrollWorkerTaxCodeV2Entity
Tax codes assigned to workers. Keyed by personnel number, tax code and country or region.
- Entity name
PayrollWorkerTaxCodeV2Entity- Public entity name
WorkerTaxCode- OData collection
WorkerTaxCodes- Category
Not set- Module
Payroll- Read-only
No- Data management enabled
Yes- Configuration key
PayrollAdministration- Keys
PersonnelNumber, TaxCodeId, CountryRegionId- Staging table
PayrollWorkerTaxCodeV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/WorkerTaxCodes- Dataverse virtual table
mserp_payrollworkertaxcodev2entity. 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
PayrollWorkerTaxCode· rootTaxCode(tablePayrollTaxCode) · InnerJoin toPayrollWorkerTaxCode· read-onlyWorker(tableHcmWorker) · InnerJoin toPayrollWorkerTaxCode· read-only
Fields (5)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TaxCodePoints to the tax code assigned to the worker. | Int64PayrollTaxCodeRecId | Yes | No (private) | PayrollTaxCode.RecId | PayrollWorkerTaxCode.PayrollTaxCode |
WorkerPoints to the worker who has the tax code. | Int64HcmWorkerRecId | Yes | No (private) | HcmWorker.RecId | PayrollWorkerTaxCode.Worker |
TaxCodeIdIdentifier of the payroll tax code. | String (70)PayrollTaxCodeId | Yes | Yes | PayrollTaxCode.Code | |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
CountryRegionIdCountry or region that the tax code applies to. | StringLogisticsAddressCountryRegionId | Yes | Yes | LogisticsAddressCountryRegion.CountryRegionId | PayrollTaxCode.CountryRegionId |
Foreign keys (3)
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.
TaxCode→PayrollTaxCode.RecId(key of PayrollTaxCode)Many PayrollWorkerTaxCode records → exactly one PayrollTaxCode record
PayrollTaxCode details: see PayrollWorkerTaxCodeParameterEntity, PayrollUSTaxTransactionHistorySummaryEntity, HcmTotalCompStatementSectionTaxEntity
Worker→HcmWorker.RecId(key of HcmWorker)Many PayrollWorkerTaxCode records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
CountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many PayrollTaxCode records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
Need help with PayrollWorkerTaxCodeV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.