Table
TrvPartyEmployeeRelationship
Employee expenses
Holds expense settings for each employee. The key is the worker. Each record gives the employee's account type, account and per diem value, and links to the worker and a ledger dimension combination.
- Table name
TrvPartyEmployeeRelationship- Module
Expense- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
Trv- Primary index
TrvWorkerIdx- Replacement key
None- Key fields
Worker- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkerEmployee the record belongs to. It points to a worker record. | Int64TrvHcmWorkerRecId | Yes | HcmWorker.RecId | TrvPartyEmployeeRelationshipEntity |
AccountTypeType of account used for the employee, such as ledger, vendor or bank. | EnumLedgerJournalACType (enum) | No | TrvPartyEmployeeRelationshipEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LedgerDimensionAccount and dimension combination for the employee. It points to a dimension combination record. | Int64DimensionDynamicDefaultAccount | No | DimensionAttributeValueCombination.RecId | TrvPartyEmployeeRelationshipEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PerDiemPer diem amount set for the employee. | RealTrvAllowance | No | TrvPartyEmployeeRelationshipEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
LedgerDimensionIdxNot unique.
TrvWorkerIdxPrimary indexUnique, alternate key.
Relations (2)
Each relation joins TrvPartyEmployeeRelationship to another table on the fields shown.
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany TrvPartyEmployeeRelationship records → zero or one DimensionAttributeValueCombination record
TrvHcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdZero or one TrvPartyEmployeeRelationship record → exactly one HcmWorker record
Get this data out
Tables are not exposed directly. These public entities read from TrvPartyEmployeeRelationship; use one of them in Power BI, Power Platform or a data management project.
TrvPartyEmployeeRelationshipEntity· 4 fields from this table
Need help with TrvPartyEmployeeRelationship in a report, an integration or a migration? Talk to Dr Dynamics.