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· rootTrvPolicyRule· InnerJoin toTrvPolicyViolationsLog· read-onlyPolicy(tableSysPolicy) · InnerJoin toTrvPolicyRule· read-onlyPolicyRuleType(tableSysPolicyRuleType) · InnerJoin toTrvPolicyRule· read-onlySysPolicySourceDocumentRuleType· Derived toPolicyRuleTypeWorker(tableHcmWorker) · OuterJoin toTrvPolicyViolationsLog· read-only
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ViolationsLogIdUnique ID of the log record. | Guid | No | Yes | TrvPolicyViolationsLog.ViolationsLogId | |
ActionWorkflow action during which the violation was logged. | Enum
| Yes | Yes | TrvPolicyViolationsLog.Action | |
HeaderExpense report or travel requisition the violation belongs to. | Int64RefRecId | Yes | No (private) | TrvExpTable.RecIdTrvRequisitionTable.RecId | TrvPolicyViolationsLog.Header |
HeaderIdIdentifies the header record that the violation belongs to. | String (20) | No | Yes | computed | |
HeaderLegalEntityCompany that owns the header record. | String (20)CompanyId | No | Yes | computed | |
LineExpense line or requisition line the violation belongs to. | Int64RefRecId | No | No (private) | TrvExpTrans.RecIdTrvRequisitionLine.RecId | TrvPolicyViolationsLog.Line |
LineIdIdentifies the line record where the violation was found. | String (20) | No | Yes | computed | |
PolicyTypeType of policy that was broken. | Enum
| No | Yes | TrvPolicyViolationsLog.PolicyType | |
RulePolicy rule that was broken. It points to a policy rule record. | Int64RefRecId | Yes | No (private) | TrvPolicyRule.RecId | TrvPolicyViolationsLog.Rule |
TrvPolicyRule_PolicyPoints to the policy this rule belongs to. | Int64RefRecId | Yes | No (private) | SysPolicy.RecId | SysPolicyRule.Policy |
PolicyNameName of the policy. | String (100)SysPolicyName | Yes | Yes | SysPolicy.Name | |
Policy_PolicyTypePoints to the policy type of this policy. | Int64RefRecId | Yes | No (private) | SysPolicyType.RecId | SysPolicy.PolicyType |
TrvPolicyRule_PolicyRuleTypePoints to the type of rule. | Int64RefRecId | Yes | No (private) | SysPolicyRuleType.RecId | SysPolicyRule.PolicyRuleType |
PolicyRuleTypeNameName of the rule type. | String (100)SysPolicyName | Yes | Yes | SysPolicyRuleType.Name | |
PolicyRules_PolicyTypePoints to the policy type this rule type belongs to. | Int64RefRecId | Yes | No (private) | SysPolicyType.RecId | SysPolicyRuleType.PolicyType |
PolicyRuleValidFromDate and time from which the rule is valid. | UtcDateTimeValidFromDateTime | No | Yes | SysPolicyRule.ValidFrom | |
ViolationDateDate of the violation. | DateTrvDateStd | No | Yes | TrvPolicyViolationsLog.ViolationDate | |
WorkerEmployee linked to the violation. It points to a worker record. | Int64TrvHcmWorkerRecId | No | No (private) | HcmWorker.RecId | TrvPolicyViolationsLog.Worker |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.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.
Header→TrvExpTable.RecId(key of TrvExpTable)Relation also requires PolicyType = 2.
Many TrvPolicyViolationsLog records → zero or one TrvExpTable record
TrvExpTable details: see TrvExpMobileReportApprovalEntity, TrvCopilotAutomationReportEntity, TrvExpMobileReportEntity
Header→TrvRequisitionTable.RecId(key of TrvRequisitionTable)Relation also requires PolicyType = 3.
Many TrvPolicyViolationsLog records → zero or one TrvRequisitionTable record
TrvRequisitionTable details: see TrvRequisitionTableEntity, TrvRequisitionTableBiEntity
Line→TrvExpTrans.RecId(key of TrvExpTrans)Relation also requires PolicyType = 2.
Many TrvPolicyViolationsLog records → zero or one TrvExpTrans record
TrvExpTrans details: see TrvCopilotAutomationExpenseEntity, TrvExpMobileExpenseEntity, TrvExpMobileExpenseLineAttachedToReportEntity
Line→TrvRequisitionLine.RecId(key of TrvRequisitionLine)Relation also requires PolicyType = 3.
Many TrvPolicyViolationsLog records → zero or one TrvRequisitionLine record
TrvRequisitionLine details: see TrvRequisitionLineBiEntity
Rule→TrvPolicyRule.RecId(key of TrvPolicyRule)Many TrvPolicyViolationsLog records → exactly one TrvPolicyRule record
TrvPolicyRule details: see TrvPolicyRuleEntity, TrvPolicyLanguageTxtEntity, TrvPolicyViolationsCacheEntity
TrvPolicyRule_Policy→SysPolicy.RecId(key of SysPolicy)Many SysPolicyRule records → exactly one SysPolicy record
SysPolicy details: see HcmBenefitEligibilityPolicyEntity, SysPolicyOrganizationEntity, TrvPolicyLanguageTxtEntity
Policy_PolicyType→SysPolicyType.RecId(key of SysPolicyType)Many SysPolicy records → exactly one SysPolicyType record
SysPolicyType details: see SysPolicyTypeEntity, HcmBenefitEligibilityRuleEntity, TrvPolicyLanguageTxtEntity
TrvPolicyRule_PolicyRuleType→SysPolicyRuleType.RecId(key of SysPolicyRuleType)Many SysPolicyRule records → exactly one SysPolicyRuleType record
SysPolicyRuleType details: see SysPolicyRuleTypeEntity, HcmBenefitEligibilityPolicyRuleTypeEntity, PayrollPremiumEarningPolicyRuleTypeEntity
PolicyRules_PolicyType→SysPolicyType.RecId(key of SysPolicyType)Many SysPolicyRuleType records → exactly one SysPolicyType record
SysPolicyType details: see SysPolicyTypeEntity, HcmBenefitEligibilityRuleEntity, TrvPolicyLanguageTxtEntity
Worker→HcmWorker.RecId(key of HcmWorker)Many TrvPolicyViolationsLog records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with TrvPolicyViolationsLogEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.