Table
AuditPolicyRuleViolation
Audit policy rule violation
Records audit policy rule violations. Each row links a violation to a batch job and a case. It also shows the policy execution time and an instance ID. It has no key defined in the metadata.
- Table name
AuditPolicyRuleViolation- Module
Compliance and internal controls- Table group
Miscellaneous- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BatchJobBatch job linked to the violation. | Int64RefRecId | Yes | BatchJob.RecId | None |
CaseDetailBaseCase linked to the violation. | Int64RefRecId | No | CaseDetailBase.RecId | None |
InstanceIDIdentifier of the instance, up to 20 characters. | String (20)Num | Yes | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PolicyExecutionTimestampUTC date and time when the policy was run. | UtcDateTimeUTCTimestamp | Yes | None | |
PolicySourceDocumentRuleViolationPolicy source document rule violation record that this row refers to. | Int64RefRecId | Yes | SysPolicySourceDocumentRuleViolation.RecId | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
BatchJobIdxBatchJob,PolicyExecutionTimestampNot unique.
Relations (3)
Each relation joins AuditPolicyRuleViolation to another table on the fields shown.
BatchJobFK→BatchJobJoin on
BatchJob = BatchJob.RecIdMany AuditPolicyRuleViolation records → exactly one BatchJob record
CaseDetailBaseFK→CaseDetailBaseJoin on
CaseDetailBase = CaseDetailBase.RecIdMany AuditPolicyRuleViolation records → zero or one CaseDetailBase record
SourceDocumentRuleViolationFK→SysPolicySourceDocumentRuleViolationJoin on
PolicySourceDocumentRuleViolation = SysPolicySourceDocumentRuleViolation.RecIdMany AuditPolicyRuleViolation records → exactly one SysPolicySourceDocumentRuleViolation record
Get this data out
No public entity reads from AuditPolicyRuleViolation. Its data is only reachable through the application, a custom entity or a database export.
Need help with AuditPolicyRuleViolation in a report, an integration or a migration? Talk to Dr Dynamics.