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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ActionWorkflow action during which the violation was logged.Enum
TrvWorkflowAction (enum)
YesTrvPolicyViolationsLogEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
HeaderExpense report or travel requisition the violation belongs to.Int64
RefRecId
YesTrvExpTable.RecIdTrvRequisitionTable.RecIdTrvPolicyViolationsLogEntity
LineExpense line or requisition line the violation belongs to.Int64
RefRecId
NoTrvExpTrans.RecIdTrvRequisitionLine.RecIdTrvPolicyViolationsLogEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PolicyTypeType of policy that was broken.Enum
SysPolicyTypeEnum (enum)
NoTrvPolicyViolationsLogEntity
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
RulePolicy rule that was broken. It points to a policy rule record.Int64
RefRecId
YesTrvPolicyRule.RecIdTrvPolicyViolationsLogEntity
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
ViolationDateDate of the violation.Date
TrvDateStd
NoTrvPolicyViolationsLogEntity
ViolationsLogIdUnique ID of the log record.GuidNoTrvPolicyViolationsLogEntity
WorkerEmployee linked to the violation. It points to a worker record.Int64
TrvHcmWorkerRecId
NoHcmWorker.RecIdTrvPolicyViolationsLogEntity

Indexes (4)

Relations (6)

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

  • TrvPolicyRule → TrvPolicyRule

    Join on Rule = TrvPolicyRule.RecId

    Many TrvPolicyViolationsLog records → exactly one TrvPolicyRule record

  • Worker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many TrvPolicyViolationsLog records → zero or one HcmWorker record

  • TrvExpTable → TrvExpTable

    Join on Header = TrvExpTable.RecId, PolicyType = 2

    Many TrvPolicyViolationsLog records → zero or one TrvExpTable record

  • TrvExpTrans → TrvExpTrans

    Join on Line = TrvExpTrans.RecId, PolicyType = 2

    Many TrvPolicyViolationsLog records → zero or one TrvExpTrans record

  • TrvRequisitionLine → TrvRequisitionLine

    Join on Line = TrvRequisitionLine.RecId, PolicyType = 3

    Many TrvPolicyViolationsLog records → zero or one TrvRequisitionLine record

  • TrvRequisitionTable → TrvRequisitionTable

    Join on Header = TrvRequisitionTable.RecId, PolicyType = 3

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

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

Email sales@drdynamics.co.uk