Table

LeaveType

Leave and absence type

Holds leave and absence types, keyed by type name. Each type sets its category, unit (hours or days), rounding, balance expiry and workflow. It also sets rules for attachments, reason codes, closed days and holidays, and it can link to an earning code and a carry-forward leave type.

Table name
LeaveType
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
TypeIdx
Key fields
Type
Model
PersonnelCore

Fields (35)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TypeShort name that identifies the leave type.String (30)
LeaveTypeId
YesLeaveTypeEntityEssLeaveTypeEntityLeaveBankTransactionV2Entityand 39 more
AttachmentRequiredOnCancelYes/No flag showing whether an attachment is needed when a leave request is cancelled.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
AttachmentRequiredOnCreateYes/No flag showing whether an attachment is needed when a leave request is created.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
AttachmentRequiredOnUpdateYes/No flag showing whether an attachment is needed when a leave request is updated.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
CalendarColorNumber that sets the colour used for this leave type in a calendar.Integer
LeaveCalendarColor
NoNone
CarryForwardLeaveTypePoints to the leave type that receives the carried-forward balance from this type.Int64
LeaveTypeRecId
NoLeaveType.RecIdLeaveTypeEntity
CategoryShows whether the leave is scheduled, unscheduled or has no category.Enum
LeaveTypeCategory (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
ClosedDaysWorkingHoursNumber of hours that count as one closed day. It must be above 0 and not more than 24.Real
ClosedDaysWorkingHours
NoLeaveTypeEntityEssLeaveTypeEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionFree-text description of the leave type.String (60)
HrmDescription
NoLeaveTypeEntityEssLeaveTypeEntity
EarningCodePoints to the payroll earning code linked to this leave type.Int64
PayrollEarningCodeRecId
NoPayrollEarningCode.RecIdNone
EnableHalfDayDefinitionYes/No flag. When Yes, workers can say which half of the day they are away.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
ExpirationRuleDurationNumber of time units after which a balance expires.Integer
LeaveExpirationRuleDuration
NoLeaveTypeEntity
ExpirationRuleEffectiveDateDate from which the balance expiration rule applies.Date
LeaveExpirationRuleEffectiveDate
NoLeaveTypeEntity
ExpirationRuleTimeUnitTime unit of the balance expiration rule: none, days or months.Enum
LeaveExpirationRuleTimeUnit (enum)
NoLeaveTypeEntity
HideLeaveBalancesYes/No flag. When Yes, workers do not see their balance for this leave type.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveBalanceEntityLeaveBalanceActiveEntityand 1 more
HolidayCorrectionsYes/No flag. When Yes, holidays are taken off balances when time off accrues.Enum
NoYes (enum)
NoLeaveTypeEntity
IncludeClosedDaysYes/No flag showing whether closed days count in a request.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
IncludeHolidaysYes/No flag showing whether holidays count in a request.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
IncludeWeekendAndHolidaysYes/No flag showing whether closed days and holidays count in a request.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
IsAttachmentRequiredYes/No flag showing whether documents must be attached to requests of this type.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
IsOpenEndedYes/No flag. When Yes, open-ended leave of absence requests are allowed.Enum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
IsReasonCodeRequiredYes/No flag: when on, time off requests of this leave type cannot be submitted without a reason code.low confidenceEnum
NoYes (enum)
NoLeaveTypeEntityEssLeaveTypeEntity
IsReturnToWorkNoticeRequiredYes/No flag. When Yes, workers can be asked to send a return to work notice.Enum
NoYes (enum)
NoLeaveTypeEntity
LeaveAmountUnitUnit for all leave amounts of this type: hours or days.Enum
LeaveAmountUnit (enum)
NoLeaveTypeEntityEssLeaveTypeEntityLeaveWorkerTimeOffEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
RequestTypeShows whether the type is used for time off or for a leave of absence.Enum
LeaveTypeRequestType (enum)
YesLeaveTypeEntityEssLeaveTypeEntityEssLeaveApprovedRequestEntityand 1 more
RestrictAccessYes/No flag. When Yes, only the security roles assigned to the leave type can use it.Enum
NoYes (enum)
NoLeaveTypeEntity
RoundingPrecisionPrecision used when leave amounts are rounded.Real
LeaveRoundingPrecision
NoLeaveTypeEntity
RoundingTypeRounding method for leave amounts: none, up, down or nearest.Enum
LeaveRoundingType (enum)
NoLeaveTypeEntity
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
WorkflowIdPoints to the workflow configuration used for requests of this type.String (20)
WorkflowSequenceNumber
YesWorkflowTable.SequenceNumberLeaveTypeEntity

Indexes (1)

  • TypeIdxReplacement key

    Type

    Unique, alternate key.

Relations (3)

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

  • WorkflowTable → WorkflowTable

    Join on WorkflowId = WorkflowTable.SequenceNumber

    Many LeaveType records → exactly one WorkflowTable record

  • CarryForwardType → LeaveType

    Join on CarryForwardLeaveType = LeaveType.RecId

    Many LeaveType records → zero or one LeaveType record

  • PayrollEarningCode → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many LeaveType records → zero or one PayrollEarningCode record

Get this data out

Tables are not exposed directly. These public entities read from LeaveType; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk