Data entity

TrvPolicyRuleEntity

Holds the rules that belong to expense and travel policies. Each rule is identified by the policy name, policy type, rule name and start date. It also stores the end date, an action, an expression ID and a setting for including the parent rule.

Entity name
TrvPolicyRuleEntity
Public entity name
PolicyRule
OData collection
PolicyRules
Category
Reference
Module
Travel and expense
Read-only
No
Data management enabled
Yes
Configuration key
Trv
Keys
PolicyName, PolicyType, PolicyType_2, PolicyRuleName, ValidFrom
Staging table
TrvPolicyRuleStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PolicyRules
Dataverse virtual table
mserp_trvpolicyruleentity. 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

  • TrvPolicyRule · root
  • Policy (table SysPolicy) · InnerJoin to TrvPolicyRule · read-only
  • PolicyTypeRel (table SysPolicyType) · InnerJoin to Policy · read-only
  • PolicyRules (table SysPolicyRuleType) · InnerJoin to TrvPolicyRule · read-only
  • PolicyType (table SysPolicyType) · InnerJoin to PolicyRules · read-only
  • SysPolicySourceDocumentRuleType · Derived to PolicyRules
  • ExpressionTable · OuterJoin to TrvPolicyRule · read-only

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RelationTypeFieldShows which table in a table inheritance hierarchy the record belongs to.Int64
RelationType
NoNo (private)TrvPolicyRule.InstanceRelationType
IncludeParentRuleYes/No flag showing whether the parent rule is included.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesSysPolicyRule.IsInherited
PolicyPoints to the policy this rule belongs to.Int64
RefRecId
YesNo (private)SysPolicy.RecIdSysPolicyRule.Policy
PolicyNameName of the policy.String (100)
SysPolicyName
YesYesSysPolicy.Name
PolicyPolicyTypePoints to the policy type of this policy.Int64
RefRecId
YesNo (private)SysPolicyType.RecIdSysPolicy.PolicyType
PolicyRuleTypePoints to the type of rule.Int64
RefRecId
YesNo (private)SysPolicyRuleType.RecIdSysPolicyRule.PolicyRuleType
PolicyTypeThe kind of policy, such as purchasing, audit or premium earning.Enum
SysPolicyTypeEnum
  • PurchasingPolicy 7
  • ApprovalPolicy 1
  • TrvExpensePolicy 2
  • TrvRequisitionPolicy 3
  • AuditPolicy 5
  • VendInvoicesPolicy 6
  • None 0
  • HcmBenefitEligibilityPolicy 8
  • PayrollPremiumEarningGenerationPolicy 9
  • ExpExpensePolicy 11
  • TimesheetPolicy 10
YesYesSysPolicyType.PolicyType
PolicyRuleNameName of the rule type.String (100)
SysPolicyName
YesYesSysPolicyRuleType.Name
PolicyRulesPolicyTypePoints to the policy type this rule type belongs to.Int64
RefRecId
YesNo (private)SysPolicyType.RecIdSysPolicyRuleType.PolicyType
PolicyType_2The kind of policy, such as purchasing, audit or premium earning.Enum
SysPolicyTypeEnum
  • PurchasingPolicy 7
  • ApprovalPolicy 1
  • TrvExpensePolicy 2
  • TrvRequisitionPolicy 3
  • AuditPolicy 5
  • VendInvoicesPolicy 6
  • None 0
  • HcmBenefitEligibilityPolicy 8
  • PayrollPremiumEarningGenerationPolicy 9
  • ExpExpensePolicy 11
  • TimesheetPolicy 10
NoNo (private)SysPolicyType.PolicyType
ValidFromDate and time from which the rule is valid.UtcDateTime
ValidFromDateTime
NoYesSysPolicyRule.ValidFrom
ValidToDate and time until which the rule is valid.UtcDateTime
ValidToDateTime
NoYesSysPolicyRule.ValidTo
ActionLevel of action taken when the rule is broken, such as allowing or blocking submit and approval.Enum
TrvPolicyViolationLevel
  • None 0
  • Warning 2
  • Error 3
  • ApproveJustification 4
  • SubmitJustification 5
  • SubmitApproveJustification 6
NoYesTrvPolicyRule.Action
ExpressionTableRecIdExpression record that holds the rule's condition. It points to an expression record.Int64NoNo (private)ExpressionTable.RecIdTrvPolicyRule.ExpressionTableRecId
ExpressionIdUnique GUID that identifies the expression.Guid
ExpressionId
YesYesExpressionTable.ExpressionId

Foreign keys (5)

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 TrvPolicyRuleEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk