Table
LeavePlan
Leave and absence plan
Holds leave and absence plans, keyed by plan name. A plan sets the leave type, a start date and how accruals are timed, such as frequency, period basis and award date. It also sets the accrual rules for workers who enrol or leave part-way through a period, and it can link to a buy and sell policy.
- Table name
LeavePlan- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
NameIdx- Key fields
Name- Model
Leave
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
NameShort name that identifies the plan. | String (30)LeavePlanName | Yes | LeavePlanV2EntityLeavePlanEntityLeaveBankTransactionV2Entityand 6 more | |
AccrualAwardDateBasisShows whether accrued leave is awarded at the start or at the end of the accrual period. | EnumLeaveAccrualAwardDateBasis (enum) | No | LeavePlanV2EntityLeavePlanEntity | |
AccrualFrequencyHow often leave accrues, for example daily, weekly, monthly or annually. | EnumLeavePlanAccrualFrequency (enum) | Yes | LeavePlanV2EntityLeavePlanEntity | |
AccrualPeriodBasisChoice of whether accrual periods follow the plan start date or a date specific to each employee. | EnumLeavePlanAccrualPeriodBasis (enum) | No | LeavePlanV2EntityLeavePlanEntity | |
AccrualTypeShows whether accrual is based on months of service or on hours worked. | EnumLeavePlanAccrualType (enum) | No | LeavePlanV2EntityLeavePlanEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree-text description of the plan. | String (60)HrmDescription | No | LeavePlanV2EntityLeavePlanEntity | |
EmployeeSpecificDateFieldNameName of the field that holds the employee-specific date used for accrual periods. The metadata gives no label.low confidence | StringFieldName | No | LeavePlanV2EntityLeavePlanEntity | |
EmployeeSpecificDateTableNameName of the table that holds the employee-specific date used for accrual periods. The metadata gives no label.low confidence | StringTableName | No | LeavePlanV2EntityLeavePlanEntity | |
EnrollmentAccrualPolicyRule for accrual when a worker enrols part-way through an accrual period: prorated, full or none. | EnumLeavePlanAccrualPolicy (enum) | No | LeavePlanV2EntityLeavePlanEntity | |
HoursWorkedTypeShows whether regular or overtime hours are counted for accrual. | EnumLeaveHoursWorkedType (enum) | No | LeavePlanV2EntityLeavePlanEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PolicyPoints to the buy and sell leave policy linked to the plan. | Int64LeaveBuySellPolicyRecId | No | LeaveBuySellPolicy.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 | |
StartDateDate from which the plan is active. It can also serve as the basis for accrual periods. | DateLeaveDate | Yes | LeavePlanV2EntityLeavePlanEntity | |
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 | |
TypePoints to the leave type that the plan covers. | Int64LeaveTypeRecId | No | LeaveType.RecId | LeavePlanEntityEssLeaveBalanceEntity |
UnenrollmentAccrualPolicyRule for accrual when a worker leaves the plan part-way through an accrual period: prorated, full or none. | EnumLeavePlanAccrualPolicy (enum) | No | LeavePlanV2EntityLeavePlanEntity |
Indexes (1)
NameIdxReplacement keyUnique, alternate key.
Relations (2)
Each relation joins LeavePlan to another table on the fields shown.
LeaveType→LeaveTypeJoin on
Type = LeaveType.RecIdMany LeavePlan records → zero or one LeaveType record
LeavePolicy→LeaveBuySellPolicyJoin on
Policy = LeaveBuySellPolicy.RecIdMany LeavePlan records → zero or one LeaveBuySellPolicy record
Get this data out
Tables are not exposed directly. These public entities read from LeavePlan; use one of them in Power BI, Power Platform or a data management project.
LeavePlanV2Entity· 12 fields from this tableLeavePlanEntity· 13 fields from this tableLeaveBankTransactionV2Entity· 1 field from this tableLeaveEnrollmentV2Entity· 1 field from this tableLeavePlanTierV2Entity· 1 field from this tableLeaveBankTransactionEntity· 1 field from this tableLeaveEnrollmentEntity· 1 field from this tableLeavePlanTierEntity· 1 field from this tableEssLeaveBalanceEntity· 1 field from this tablePayIntV1LeaveBankTransactionEntity· 1 field from this table
Need help with LeavePlan in a report, an integration or a migration? Talk to Dr Dynamics.