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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TypeShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | LeaveTypeEntityEssLeaveTypeEntityLeaveBankTransactionV2Entityand 39 more | |
AttachmentRequiredOnCancelYes/No flag showing whether an attachment is needed when a leave request is cancelled. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
AttachmentRequiredOnCreateYes/No flag showing whether an attachment is needed when a leave request is created. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
AttachmentRequiredOnUpdateYes/No flag showing whether an attachment is needed when a leave request is updated. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
CalendarColorNumber that sets the colour used for this leave type in a calendar. | IntegerLeaveCalendarColor | No | None | |
CarryForwardLeaveTypePoints to the leave type that receives the carried-forward balance from this type. | Int64LeaveTypeRecId | No | LeaveType.RecId | LeaveTypeEntity |
CategoryShows whether the leave is scheduled, unscheduled or has no category. | EnumLeaveTypeCategory (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
ClosedDaysWorkingHoursNumber of hours that count as one closed day. It must be above 0 and not more than 24. | RealClosedDaysWorkingHours | No | LeaveTypeEntityEssLeaveTypeEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree-text description of the leave type. | String (60)HrmDescription | No | LeaveTypeEntityEssLeaveTypeEntity | |
EarningCodePoints to the payroll earning code linked to this leave type. | Int64PayrollEarningCodeRecId | No | PayrollEarningCode.RecId | None |
EnableHalfDayDefinitionYes/No flag. When Yes, workers can say which half of the day they are away. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
ExpirationRuleDurationNumber of time units after which a balance expires. | IntegerLeaveExpirationRuleDuration | No | LeaveTypeEntity | |
ExpirationRuleEffectiveDateDate from which the balance expiration rule applies. | DateLeaveExpirationRuleEffectiveDate | No | LeaveTypeEntity | |
ExpirationRuleTimeUnitTime unit of the balance expiration rule: none, days or months. | EnumLeaveExpirationRuleTimeUnit (enum) | No | LeaveTypeEntity | |
HideLeaveBalancesYes/No flag. When Yes, workers do not see their balance for this leave type. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveBalanceEntityLeaveBalanceActiveEntityand 1 more | |
HolidayCorrectionsYes/No flag. When Yes, holidays are taken off balances when time off accrues. | EnumNoYes (enum) | No | LeaveTypeEntity | |
IncludeClosedDaysYes/No flag showing whether closed days count in a request. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
IncludeHolidaysYes/No flag showing whether holidays count in a request. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
IncludeWeekendAndHolidaysYes/No flag showing whether closed days and holidays count in a request. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
IsAttachmentRequiredYes/No flag showing whether documents must be attached to requests of this type. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
IsOpenEndedYes/No flag. When Yes, open-ended leave of absence requests are allowed. | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
IsReasonCodeRequiredYes/No flag: when on, time off requests of this leave type cannot be submitted without a reason code.low confidence | EnumNoYes (enum) | No | LeaveTypeEntityEssLeaveTypeEntity | |
IsReturnToWorkNoticeRequiredYes/No flag. When Yes, workers can be asked to send a return to work notice. | EnumNoYes (enum) | No | LeaveTypeEntity | |
LeaveAmountUnitUnit for all leave amounts of this type: hours or days. | EnumLeaveAmountUnit (enum) | No | LeaveTypeEntityEssLeaveTypeEntityLeaveWorkerTimeOffEntity | |
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 | |
RequestTypeShows whether the type is used for time off or for a leave of absence. | EnumLeaveTypeRequestType (enum) | Yes | LeaveTypeEntityEssLeaveTypeEntityEssLeaveApprovedRequestEntityand 1 more | |
RestrictAccessYes/No flag. When Yes, only the security roles assigned to the leave type can use it. | EnumNoYes (enum) | No | LeaveTypeEntity | |
RoundingPrecisionPrecision used when leave amounts are rounded. | RealLeaveRoundingPrecision | No | LeaveTypeEntity | |
RoundingTypeRounding method for leave amounts: none, up, down or nearest. | EnumLeaveRoundingType (enum) | No | LeaveTypeEntity | |
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 | |
WorkflowIdPoints to the workflow configuration used for requests of this type. | String (20)WorkflowSequenceNumber | Yes | WorkflowTable.SequenceNumber | LeaveTypeEntity |
Indexes (1)
TypeIdxReplacement keyUnique, alternate key.
Relations (3)
Each relation joins LeaveType to another table on the fields shown.
WorkflowTable→WorkflowTableJoin on
WorkflowId = WorkflowTable.SequenceNumberMany LeaveType records → exactly one WorkflowTable record
CarryForwardType→LeaveTypeJoin on
CarryForwardLeaveType = LeaveType.RecIdMany LeaveType records → zero or one LeaveType record
PayrollEarningCode→PayrollEarningCodeJoin on
EarningCode = PayrollEarningCode.RecIdMany 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.
LeaveTypeEntity· 27 fields from this tableEssLeaveTypeEntity· 16 fields from this tableLeaveBankTransactionV2Entity· 1 field from this tableLeavePlanTierV2Entity· 1 field from this tableLeavePlanV2Entity· 1 field from this tableLeaveRequestV2Entity· 1 field from this tableLeaveAccrualSuspensionEntity· 1 field from this tableLeaveBankTransactionAuditTrailEntity· 1 field from this tableLeaveBankTransactionEntity· 1 field from this tableLeaveBuySellPolicyBuyTierEntity· 1 field from this tableLeaveBuySellPolicySellTierEntity· 1 field from this tableLeaveBuySellRequestEntity· 1 field from this tableLeaveEnrollmentEntity· 1 field from this tableLeaveOfAbsenceRequestDetailEntity· 1 field from this tableLeaveOfAbsenceRequestEntity· 1 field from this tableLeavePlanEntity· 1 field from this tableLeaveRequestDetailEntity· 1 field from this tableLeaveRequestEntity· 1 field from this tableLeaveTypeReasonCodeEntity· 1 field from this tableLeaveTypeSecurityRoleEntity· 1 field from this tableLeaveTypeSuspensionRelationshipEntity· 2 fields from this tableEssLeaveBalanceEntity· 2 fields from this tableLeaveBalanceActiveEntity· 2 fields from this tableLeaveBalanceEntity· 2 fields from this tableEssLeaveRequestAssignedDetailEntity· 1 field from this tableEssLeaveRequestDetailEntity· 1 field from this tableEssLeaveRequestEntity· 1 field from this tableEssLoaRequestEntity· 1 field from this tablePayIntV1LeaveBankTransactionEntity· 1 field from this tableEssLeaveApprovedRequestEntity· 2 fields from this tableEssLeaveTimeOffDateEntity· 1 field from this tableEssLeaveTypeReasonCodeEntity· 1 field from this tableEssLoaRequestDetailApproverEntity· 1 field from this tableEssTimeOffDetailApproverEntity· 1 field from this tableLeaveApprovedRequestsEntity· 2 fields from this tableLeaveWorkerTimeOffEntity· 1 field from this tableMssHRTeamsAppPendingLoaEntity· 1 field from this tableMssHRTeamsAppPendingTimeoffEntity· 1 field from this tableMssLeaveRequestDateEntity· 1 field from this tableMssLeaveTimeOffDateEntity· 1 field from this tableMssPendingLeaveRequestWorkflowEntity· 1 field from this tableMssPendingLoaRequestWorkflowEntity· 1 field from this table
Need help with LeaveType in a report, an integration or a migration? Talk to Dr Dynamics.