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 descriptionType / EDT / enumMandatoryReferencesIn public entities
WorkerEmployee the record belongs to. It points to a worker record.Int64
TrvHcmWorkerRecId
YesHcmWorker.RecIdTrvPartyEmployeeRelationshipEntity
AccountTypeType of account used for the employee, such as ledger, vendor or bank.Enum
LedgerJournalACType (enum)
NoTrvPartyEmployeeRelationshipEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LedgerDimensionAccount and dimension combination for the employee. It points to a dimension combination record.Int64
DimensionDynamicDefaultAccount
NoDimensionAttributeValueCombination.RecIdTrvPartyEmployeeRelationshipEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PerDiemPer diem amount set for the employee.Real
TrvAllowance
NoTrvPartyEmployeeRelationshipEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (2)

Each relation joins TrvPartyEmployeeRelationship to another table on the fields shown.

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many TrvPartyEmployeeRelationship records → zero or one DimensionAttributeValueCombination record

  • TrvHcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Zero 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.

Need help with TrvPartyEmployeeRelationship in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk