Table
TrvPolicyViolationJustification
Policy violation justifications
Holds the reasons employees give for breaking a policy. Each record links to the violating expense report, expense line or requisition, and to the employee who gave the reason. It also records the workflow action and the type of record.
- Table name
TrvPolicyViolationJustification- Module
Expense- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
Trv- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActionWorkflow action during which the justification was given, such as submit or approve. | EnumTrvWorkflowAction (enum) | No | TrvPolicyViolationJustificationEntity | |
JustificationText the employee gives to explain the violation. | String (1000)TrvSubmitterJustification | No | TrvPolicyViolationJustificationEntityTrvExpTransMobileV2EntityTrvCopilotAutomationExpenseEntityand 8 more | |
JustificationIdUnique ID of the justification record. | Guid | No | TrvPolicyViolationJustificationEntity | |
JustifyingWorkerEmployee who gave the justification. It points to a worker record. | Int64TrvHcmWorkerRecId | Yes | HcmWorker.RecId | TrvPolicyViolationJustificationEntityTrvExpTransMobileV2EntityTrvCopilotAutomationExpenseEntityand 6 more |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
ViolatingRecordExpense report, expense line or requisition line that broke the policy. | Int64RefRecId | No | TrvExpTable.RecIdTrvExpTrans.RecIdTrvRequisitionLine.RecIdTrvRequisitionTable.RecId | TrvPolicyViolationJustificationEntity |
ViolationJustificationTypeKind of record the justification is for: expense line or header, or requisition line or header. | EnumTrvPolicyViolationJustificationTypeEnum (enum) | No | TrvPolicyViolationJustificationEntity |
Indexes (3)
JustificationIdUnique, alternate key.
TrvJustifyingWorkerIdxNot unique.
TrvJustificationViolationIdxViolatingRecord,ViolationJustificationType,JustifyingWorker,ActionNot unique.
Relations (5)
Each relation joins TrvPolicyViolationJustification to another table on the fields shown.
TrvHcmWorker→HcmWorkerJoin on
JustifyingWorker = HcmWorker.RecIdMany TrvPolicyViolationJustification records → exactly one HcmWorker record
TrvExpTable→TrvExpTableJoin on
ViolatingRecord = TrvExpTable.RecIdMany TrvPolicyViolationJustification records → zero or one TrvExpTable record
TrvExpTrans→TrvExpTransJoin on
ViolatingRecord = TrvExpTrans.RecIdMany TrvPolicyViolationJustification records → zero or one TrvExpTrans record
TrvRequisitionLine→TrvRequisitionLineJoin on
ViolatingRecord = TrvRequisitionLine.RecIdMany TrvPolicyViolationJustification records → zero or one TrvRequisitionLine record
TrvRequisitionTable→TrvRequisitionTableJoin on
ViolatingRecord = TrvRequisitionTable.RecIdMany TrvPolicyViolationJustification records → zero or one TrvRequisitionTable record
Get this data out
Tables are not exposed directly. These public entities read from TrvPolicyViolationJustification; use one of them in Power BI, Power Platform or a data management project.
TrvPolicyViolationJustificationEntity· 6 fields from this tableTrvExpTransMobileV2Entity· 2 fields from this tableTrvCopilotAutomationExpenseEntity· 2 fields from this tableTrvCopilotAutomationReportEntity· 2 fields from this tableTrvExpMobileExpenseEntity· 2 fields from this tableTrvExpMobileExpenseLineAttachedToReportEntity· 2 fields from this tableTrvExpMobileLineApprovalEntity· 2 fields from this tableTrvExpMobileReportApprovalEntity· 1 field from this tableTrvExpMobileReportEntity· 1 field from this tableTrvExpenseAgentExpenseEntity· 2 fields from this tableTrvExpenseAgentReportEntity· 2 fields from this table
Need help with TrvPolicyViolationJustification in a report, an integration or a migration? Talk to Dr Dynamics.