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 descriptionType / EDT / enumMandatoryReferencesIn public entities
NameShort name that identifies the plan.String (30)
LeavePlanName
YesLeavePlanV2EntityLeavePlanEntityLeaveBankTransactionV2Entityand 6 more
AccrualAwardDateBasisShows whether accrued leave is awarded at the start or at the end of the accrual period.Enum
LeaveAccrualAwardDateBasis (enum)
NoLeavePlanV2EntityLeavePlanEntity
AccrualFrequencyHow often leave accrues, for example daily, weekly, monthly or annually.Enum
LeavePlanAccrualFrequency (enum)
YesLeavePlanV2EntityLeavePlanEntity
AccrualPeriodBasisChoice of whether accrual periods follow the plan start date or a date specific to each employee.Enum
LeavePlanAccrualPeriodBasis (enum)
NoLeavePlanV2EntityLeavePlanEntity
AccrualTypeShows whether accrual is based on months of service or on hours worked.Enum
LeavePlanAccrualType (enum)
NoLeavePlanV2EntityLeavePlanEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionFree-text description of the plan.String (60)
HrmDescription
NoLeavePlanV2EntityLeavePlanEntity
EmployeeSpecificDateFieldNameName of the field that holds the employee-specific date used for accrual periods. The metadata gives no label.low confidenceString
FieldName
NoLeavePlanV2EntityLeavePlanEntity
EmployeeSpecificDateTableNameName of the table that holds the employee-specific date used for accrual periods. The metadata gives no label.low confidenceString
TableName
NoLeavePlanV2EntityLeavePlanEntity
EnrollmentAccrualPolicyRule for accrual when a worker enrols part-way through an accrual period: prorated, full or none.Enum
LeavePlanAccrualPolicy (enum)
NoLeavePlanV2EntityLeavePlanEntity
HoursWorkedTypeShows whether regular or overtime hours are counted for accrual.Enum
LeaveHoursWorkedType (enum)
NoLeavePlanV2EntityLeavePlanEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PolicyPoints to the buy and sell leave policy linked to the plan.Int64
LeaveBuySellPolicyRecId
NoLeaveBuySellPolicy.RecIdNone
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
StartDateDate from which the plan is active. It can also serve as the basis for accrual periods.Date
LeaveDate
YesLeavePlanV2EntityLeavePlanEntity
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
TypePoints to the leave type that the plan covers.Int64
LeaveTypeRecId
NoLeaveType.RecIdLeavePlanEntityEssLeaveBalanceEntity
UnenrollmentAccrualPolicyRule for accrual when a worker leaves the plan part-way through an accrual period: prorated, full or none.Enum
LeavePlanAccrualPolicy (enum)
NoLeavePlanV2EntityLeavePlanEntity

Indexes (1)

  • NameIdxReplacement key

    Name

    Unique, alternate key.

Relations (2)

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

  • LeaveType → LeaveType

    Join on Type = LeaveType.RecId

    Many LeavePlan records → zero or one LeaveType record

  • LeavePolicy → LeaveBuySellPolicy

    Join on Policy = LeaveBuySellPolicy.RecId

    Many 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.

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

Email sales@drdynamics.co.uk