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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActionLevel of action taken when the rule is broken, such as allowing or blocking submit and approval. | EnumTrvPolicyViolationLevel (enum) | No | TrvPolicyRuleEntity | |
ExpressionTableRecIdExpression record that holds the rule's condition. It points to an expression record. | Int64 | No | ExpressionTable.RecId | TrvPolicyRuleEntity |
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field. | Int64RelationType | No | TrvPolicyRuleEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RootExpressionIdID of the top-level expression of the rule. | GuidExpressionId | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
TrvPolicyActionIdxNot unique.
Relations (2)
Each relation joins TrvPolicyRule to another table on the fields shown.
ExpressionTable→ExpressionTableJoin on
ExpressionTableRecId = ExpressionTable.RecIdMany TrvPolicyRule records → zero or one ExpressionTable record
SysPolicyRule1_4704→SysPolicyRuleJoin on
RecId = SysPolicyRule.RecIdZero 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.
TrvPolicyRuleEntity· 3 fields from this tableTrvPolicyLanguageTxtEntity· 0 fields from this tableTrvPolicyViolationsCacheEntity· 0 fields from this tableTrvPolicyViolationsLogEntity· 0 fields from this table
Need help with TrvPolicyRule in a report, an integration or a migration? Talk to Dr Dynamics.