Table

TrvPolicyRule

Expense and travel policy rule

Holds expense and travel policy rules. Each rule has an expression and an action level that sets what happens on a violation. It links to the expression table and to the general policy rule table. It has no defined key in the metadata.

Table name
TrvPolicyRule
Module
Expense
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
Trv
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation
Extends
SysPolicyRule

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ActionLevel of action taken when the rule is broken, such as allowing or blocking submit and approval.Enum
TrvPolicyViolationLevel (enum)
NoTrvPolicyRuleEntity
ExpressionTableRecIdExpression record that holds the rule's condition. It points to an expression record.Int64NoExpressionTable.RecIdTrvPolicyRuleEntity
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
NoTrvPolicyRuleEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
RootExpressionIdID of the top-level expression of the rule.Guid
ExpressionId
NoNone
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

Indexes (1)

  • TrvPolicyActionIdx

    Action

    Not unique.

Relations (2)

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

  • ExpressionTable → ExpressionTable

    Join on ExpressionTableRecId = ExpressionTable.RecId

    Many TrvPolicyRule records → zero or one ExpressionTable record

  • SysPolicyRule1_4704 → SysPolicyRule

    Join on RecId = SysPolicyRule.RecId

    Zero or one TrvPolicyRule record → exactly one SysPolicyRule record

Get this data out

Tables are not exposed directly. These public entities read from TrvPolicyRule; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk