Table
TrvPolicyViolationsLog
Policy violations log
Keeps a log of policy violations on expense reports and travel requisitions. Each record shows the rule, policy type, workflow action and worker. It links to expense reports, expense lines, requisitions and policy rules. It has no defined key in the metadata.
- Table name
TrvPolicyViolationsLog- 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 (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActionWorkflow action during which the violation was logged. | EnumTrvWorkflowAction (enum) | Yes | TrvPolicyViolationsLogEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
HeaderExpense report or travel requisition the violation belongs to. | Int64RefRecId | Yes | TrvExpTable.RecIdTrvRequisitionTable.RecId | TrvPolicyViolationsLogEntity |
LineExpense line or requisition line the violation belongs to. | Int64RefRecId | No | TrvExpTrans.RecIdTrvRequisitionLine.RecId | TrvPolicyViolationsLogEntity |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
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. | EnumSysPolicyTypeEnum (enum) | No | TrvPolicyViolationsLogEntity | |
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 | Yes | TrvPolicyRule.RecId | TrvPolicyViolationsLogEntity |
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 | |
ViolationDateDate of the violation. | DateTrvDateStd | No | TrvPolicyViolationsLogEntity | |
ViolationsLogIdUnique ID of the log record. | Guid | No | TrvPolicyViolationsLogEntity | |
WorkerEmployee linked to the violation. It points to a worker record. | Int64TrvHcmWorkerRecId | No | HcmWorker.RecId | TrvPolicyViolationsLogEntity |
Indexes (4)
ViolationsLogIdUnique, alternate key.
PolicyDateEmplActionIdxRule,ViolationDate,Worker,ActionNot unique.
TrvWorkerIdxNot unique.
TrvHeaderIdxNot unique.
Relations (6)
Each relation joins TrvPolicyViolationsLog to another table on the fields shown.
TrvPolicyRule→TrvPolicyRuleJoin on
Rule = TrvPolicyRule.RecIdMany TrvPolicyViolationsLog records → exactly one TrvPolicyRule record
Worker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany TrvPolicyViolationsLog records → zero or one HcmWorker record
TrvExpTable→TrvExpTableJoin on
Header = TrvExpTable.RecId,PolicyType = 2Many TrvPolicyViolationsLog records → zero or one TrvExpTable record
TrvExpTrans→TrvExpTransJoin on
Line = TrvExpTrans.RecId,PolicyType = 2Many TrvPolicyViolationsLog records → zero or one TrvExpTrans record
TrvRequisitionLine→TrvRequisitionLineJoin on
Line = TrvRequisitionLine.RecId,PolicyType = 3Many TrvPolicyViolationsLog records → zero or one TrvRequisitionLine record
TrvRequisitionTable→TrvRequisitionTableJoin on
Header = TrvRequisitionTable.RecId,PolicyType = 3Many TrvPolicyViolationsLog records → zero or one TrvRequisitionTable record
Get this data out
Tables are not exposed directly. These public entities read from TrvPolicyViolationsLog; use one of them in Power BI, Power Platform or a data management project.
TrvPolicyViolationsLogEntity· 8 fields from this table
Need help with TrvPolicyViolationsLog in a report, an integration or a migration? Talk to Dr Dynamics.