Table

SysPolicyRule

Policy rules

Holds the rules that belong to a policy. Each rule is identified by the policy, the rule type and the start date. It links to the policy and to the policy rule type.

Table name
SysPolicyRule
Module
Workflow
Table group
Main
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
PolicyRuleIdx
Key fields
Policy, PolicyRuleType, ValidFrom
Model
Policy

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PolicyPoints to the policy this rule belongs to.Int64
RefRecId
YesSysPolicy.RecIdTrvPolicyLanguageTxtEntityTrvPolicyRuleEntityTrvPolicyViolationsCacheEntityand 1 more
PolicyRuleTypePoints to the type of rule.Int64
RefRecId
YesSysPolicyRuleType.RecIdHcmBenefitEligibilityRuleEntityTrvPolicyLanguageTxtEntityTrvPolicyRuleEntityand 2 more
ValidFromDate and time from which the rule is valid.UtcDateTime
ValidFromDateTime
NoHcmBenefitEligibilityRuleEntityTrvPolicyLanguageTxtEntityTrvPolicyRuleEntityand 2 more
InstanceRelationTypeSystem field that records the specific type of the rule record.low confidenceInt64
RelationType
NoNone
IsInheritedYes/No flag showing whether the parent rule is included.Enum
NoYesId
NoYes (enum)
NoHcmBenefitEligibilityRuleEntityTrvPolicyRuleEntity
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
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
ValidToDate and time until which the rule is valid.UtcDateTime
ValidToDateTime
NoHcmBenefitEligibilityRuleEntityTrvPolicyRuleEntity

Indexes (1)

Relations (2)

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

  • Policy → SysPolicy

    Join on Policy = SysPolicy.RecId

    Many SysPolicyRule records → exactly one SysPolicy record

  • PolicyRules → SysPolicyRuleType

    Join on PolicyRuleType = SysPolicyRuleType.RecId

    Many SysPolicyRule records → exactly one SysPolicyRuleType record

Get this data out

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

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

Email sales@drdynamics.co.uk