Table
TSPolicyViolationsCache
Cache table for policy violations on timesheets
Cache table that stores policy violations found on timesheets. Each record links a timesheet, a weekly period and a policy rule. It also holds the policy type, the rule type and the violation level.
- Table name
TSPolicyViolationsCache- Module
Project management and accounting- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Project- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PolicyRuleTypeType of policy rule that was broken, such as user-defined or purchasing rule. | EnumSysPolicyRuleTypeEnum (enum) | No | None | |
PolicyTypeType of policy involved, chosen from a list of policy kinds. | EnumSysPolicyTypeEnum (enum) | No | None | |
PolicyViolationLevelLevel of the violation, which shows what action the policy requires. | EnumTSPolicyViolationLevel (enum) | No | None | |
ProjPeriodTimesheetWeekPoints to the timesheet weekly period where the violation was found. | Int64RefRecId | No | ProjPeriodTimesheetWeek.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 | |
RulePoints to the timesheet policy rule that was broken. | Int64RefRecId | Yes | TSPolicyRule.RecId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TimesheetNbrNumber of the timesheet that has the violation. | StringTSTimesheetNbr | No | TSTimesheetTable.TimesheetNbr | None |
Indexes (3)
RuleIdxNot unique.
PolicyTypeIdxNot unique.
TimesheetNbrIdxNot unique.
Relations (3)
Each relation joins TSPolicyViolationsCache to another table on the fields shown.
ProjPeriodTimesheetWeek→ProjPeriodTimesheetWeekJoin on
ProjPeriodTimesheetWeek = ProjPeriodTimesheetWeek.RecIdMany TSPolicyViolationsCache records → zero or one ProjPeriodTimesheetWeek record
TSPolicyRule→TSPolicyRuleJoin on
Rule = TSPolicyRule.RecIdMany TSPolicyViolationsCache records → exactly one TSPolicyRule record
TSTimesheetTable→TSTimesheetTableJoin on
TimesheetNbr = TSTimesheetTable.TimesheetNbrMany TSPolicyViolationsCache records → exactly one TSTimesheetTable record
Get this data out
No public entity reads from TSPolicyViolationsCache. Its data is only reachable through the application, a custom entity or a database export.
Need help with TSPolicyViolationsCache in a report, an integration or a migration? Talk to Dr Dynamics.