Data entity

TrvPolicyViolationsLogEntity

Holds a log of policy violations for expense and travel records. Each record is identified by a violations log ID. It links to the worker, the policy rule and the policy, and includes the rule name, the rule start date and the date.

Entity name
TrvPolicyViolationsLogEntity
Public entity name
PolicyViolationsLog
OData collection
PolicyViolationsLog
Category
Not set
Module
Travel and expense
Read-only
No
Data management enabled
Yes
Configuration key
Trv
Keys
ViolationsLogId
Staging table
TrvPolicyViolationsLogStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PolicyViolationsLog
Dataverse virtual table
mserp_trvpolicyviolationslogentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • TrvPolicyViolationsLog · root
  • TrvPolicyRule · InnerJoin to TrvPolicyViolationsLog · read-only
  • Policy (table SysPolicy) · InnerJoin to TrvPolicyRule · read-only
  • PolicyRuleType (table SysPolicyRuleType) · InnerJoin to TrvPolicyRule · read-only
  • SysPolicySourceDocumentRuleType · Derived to PolicyRuleType
  • Worker (table HcmWorker) · OuterJoin to TrvPolicyViolationsLog · read-only

Fields (19)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ViolationsLogIdUnique ID of the log record.GuidNoYesTrvPolicyViolationsLog.ViolationsLogId
ActionWorkflow action during which the violation was logged.Enum
TrvWorkflowAction
  • Submit 0
  • Approve 1
  • Return 2
  • Cancel 3
  • Resubmit 4
  • Delegate 5
YesYesTrvPolicyViolationsLog.Action
HeaderExpense report or travel requisition the violation belongs to.Int64
RefRecId
YesNo (private)TrvExpTable.RecIdTrvRequisitionTable.RecIdTrvPolicyViolationsLog.Header
HeaderIdIdentifies the header record that the violation belongs to.String (20)NoYescomputed
HeaderLegalEntityCompany that owns the header record.String (20)
CompanyId
NoYescomputed
LineExpense line or requisition line the violation belongs to.Int64
RefRecId
NoNo (private)TrvExpTrans.RecIdTrvRequisitionLine.RecIdTrvPolicyViolationsLog.Line
LineIdIdentifies the line record where the violation was found.String (20)NoYescomputed
PolicyTypeType of policy that was broken.Enum
SysPolicyTypeEnum
  • PurchasingPolicy 7
  • ApprovalPolicy 1
  • TrvExpensePolicy 2
  • TrvRequisitionPolicy 3
  • AuditPolicy 5
  • VendInvoicesPolicy 6
  • None 0
  • HcmBenefitEligibilityPolicy 8
  • PayrollPremiumEarningGenerationPolicy 9
  • ExpExpensePolicy 11
  • TimesheetPolicy 10
NoYesTrvPolicyViolationsLog.PolicyType
RulePolicy rule that was broken. It points to a policy rule record.Int64
RefRecId
YesNo (private)TrvPolicyRule.RecIdTrvPolicyViolationsLog.Rule
TrvPolicyRule_PolicyPoints to the policy this rule belongs to.Int64
RefRecId
YesNo (private)SysPolicy.RecIdSysPolicyRule.Policy
PolicyNameName of the policy.String (100)
SysPolicyName
YesYesSysPolicy.Name
Policy_PolicyTypePoints to the policy type of this policy.Int64
RefRecId
YesNo (private)SysPolicyType.RecIdSysPolicy.PolicyType
TrvPolicyRule_PolicyRuleTypePoints to the type of rule.Int64
RefRecId
YesNo (private)SysPolicyRuleType.RecIdSysPolicyRule.PolicyRuleType
PolicyRuleTypeNameName of the rule type.String (100)
SysPolicyName
YesYesSysPolicyRuleType.Name
PolicyRules_PolicyTypePoints to the policy type this rule type belongs to.Int64
RefRecId
YesNo (private)SysPolicyType.RecIdSysPolicyRuleType.PolicyType
PolicyRuleValidFromDate and time from which the rule is valid.UtcDateTime
ValidFromDateTime
NoYesSysPolicyRule.ValidFrom
ViolationDateDate of the violation.Date
TrvDateStd
NoYesTrvPolicyViolationsLog.ViolationDate
WorkerEmployee linked to the violation. It points to a worker record.Int64
TrvHcmWorkerRecId
NoNo (private)HcmWorker.RecIdTrvPolicyViolationsLog.Worker
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber

Foreign keys (10)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with TrvPolicyViolationsLogEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk