Table
TrvPolicyViolationsCache
Cache table for policy violations on an expense line
Temporary store of policy violations found on expense or requisition lines. Each record links to the policy rule, the worker and the document. It has no defined key in the metadata.
- Table name
TrvPolicyViolationsCache- Module
Expense- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
Trv- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
HeaderExpense report or travel requisition the violation belongs to. | Int64RefRecId | No | TrvExpTable.RecIdTrvRequisitionTable.RecId | TrvPolicyViolationsCacheEntity |
LineTravel requisition line the violation belongs to. | Int64RefRecId | No | TrvRequisitionLine.RecId | TrvPolicyViolationsCacheEntity |
ParentRecIdExpense line the violation belongs to. | Int64RefRecId | No | TrvExpTrans.RecId | TrvPolicyViolationsCacheEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PolicyTypeType of policy that was broken, such as expense or travel cost. | EnumSysPolicyTypeEnum (enum) | No | TrvPolicyViolationsCacheEntity | |
PolicyViolationLevelSeverity of the violation, which decides what users may do next. | EnumTrvPolicyViolationLevel (enum) | No | TrvPolicyViolationsCacheEntity | |
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 | |
RulePolicy rule that was broken. It points to a policy rule record. | Int64RefRecId | No | TrvPolicyRule.RecId | TrvPolicyViolationsCacheEntity |
SaveDateTimeDate and time the record was saved, in UTC. | UtcDateTimeTrvUtcDateTime | No | TrvPolicyViolationsCacheEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ViolationDateDate of the violation. | DateTrvDateStd | No | TrvPolicyViolationsCacheEntity | |
ViolationsCacheIdUnique ID of the cache record. | Guid | No | TrvPolicyViolationsCacheEntity | |
WorkerEmployee linked to the violation. It points to a worker record. | Int64TrvHcmWorkerRecId | No | HcmWorker.RecId | TrvPolicyViolationsCacheEntity |
Indexes (7)
ViolationsCacheIdUnique, alternate key.
ViolationrecordIndexNot unique.
HcmWorkerIdxNot unique.
LineIdxNot unique.
HeaderIdxNot unique.
PolicyTypeIdxNot unique.
HeaderPolicyRuleIdxParentRecId,Header,PolicyType,RuleNot unique.
Relations (6)
Each relation joins TrvPolicyViolationsCache to another table on the fields shown.
TrvHcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany TrvPolicyViolationsCache records → zero or one HcmWorker record
TrvExpTable→TrvExpTableJoin on
PolicyType = 2,Header = TrvExpTable.RecIdMany TrvPolicyViolationsCache records → zero or one TrvExpTable record
TrvExpTrans→TrvExpTransJoin on
ParentRecId = TrvExpTrans.RecId,PolicyType = 2,Line = TrvExpTrans.RecIdMany TrvPolicyViolationsCache records → zero or one TrvExpTrans record
TrvRequisitionLine→TrvRequisitionLineJoin on
PolicyType = 3,Line = TrvRequisitionLine.RecIdMany TrvPolicyViolationsCache records → zero or one TrvRequisitionLine record
TrvRequisitionTable→TrvRequisitionTableJoin on
PolicyType = 3,Header = TrvRequisitionTable.RecIdMany TrvPolicyViolationsCache records → zero or one TrvRequisitionTable record
TrvPolicyRule→TrvPolicyRuleJoin on
Rule = TrvPolicyRule.RecIdMany TrvPolicyViolationsCache records → zero or one TrvPolicyRule record
Get this data out
Tables are not exposed directly. These public entities read from TrvPolicyViolationsCache; use one of them in Power BI, Power Platform or a data management project.
TrvPolicyViolationsCacheEntity· 10 fields from this table
Need help with TrvPolicyViolationsCache in a report, an integration or a migration? Talk to Dr Dynamics.