Table
TSPolicyRule
Timesheet policies
Defines a timesheet policy rule. It holds a minimum and a maximum work calendar for a company, and the action to take when the rule is broken. The action is one of three levels, from none to blocking submission.
- Table name
TSPolicyRule- Module
Project management and accounting- Table group
Reference- Table type
Regular- Data per company
No- Configuration key
Project- 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 |
|---|---|---|---|---|
CompanyIdCompany that owns the calendars used by this policy. | StringCompanyId | No | WorkCalendarTable.dataAreaIdWorkCalendarTable.dataAreaId | None |
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field. | Int64RelationType | No | None | |
MaxCalendarWork calendar used as the upper limit in the policy. | StringCalendarId | No | WorkCalendarTable.CalendarId | None |
MinCalendarWork calendar used as the lower limit in the policy. | StringCalendarId | No | WorkCalendarTable.CalendarId | None |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TSActionLevel of action for a policy violation: none, allow submission and approval, or do not allow submission. | EnumTSPolicyViolationLevel (enum) | No | None |
Relations (3)
Each relation joins TSPolicyRule to another table on the fields shown.
MaxCalendar→WorkCalendarTableJoin on
CompanyId = WorkCalendarTable.dataAreaId,MaxCalendar = WorkCalendarTable.CalendarIdMany TSPolicyRule records → zero or one WorkCalendarTable record
MinCalendar→WorkCalendarTableJoin on
CompanyId = WorkCalendarTable.dataAreaId,MinCalendar = WorkCalendarTable.CalendarIdMany TSPolicyRule records → zero or one WorkCalendarTable record
SysPolicyRule_TS→SysPolicyRuleJoin on
RecId = SysPolicyRule.RecIdZero or one TSPolicyRule record → exactly one SysPolicyRule record
Get this data out
No public entity reads from TSPolicyRule. Its data is only reachable through the application, a custom entity or a database export.
Need help with TSPolicyRule in a report, an integration or a migration? Talk to Dr Dynamics.