Data entity
LeaveTypeEntity
Holds the leave and absence types. Each record is identified by the type code. It has a description, category, rounding settings, time unit, duration, request options and the carry-forward leave type. It also links to an earning code.
- Entity name
LeaveTypeEntity- Public entity name
LeaveType- OData collection
LeaveTypes- Category
Not set- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
Type- Staging table
LeaveTypeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveTypes- Dataverse virtual table
mserp_leavetypeentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
LeaveType· rootPayrollEarningCode· OuterJoin toLeaveType· read-only
Fields (30)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TypeShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | Yes | LeaveType.Type | |
DescriptionFree-text description of the leave type. | String (60)HrmDescription | No | Yes | LeaveType.Description | |
CategoryShows whether the leave is scheduled, unscheduled or has no category. | Enum
| No | Yes | LeaveType.Category | |
WorkflowIdPoints to the workflow configuration used for requests of this type. | String (20)WorkflowSequenceNumber | Yes | Yes | WorkflowTable.SequenceNumber | LeaveType.WorkflowId |
IsReasonCodeRequiredYes/No flag: when on, time off requests of this leave type cannot be submitted without a reason code.low confidence | Enum
| No | Yes | LeaveType.IsReasonCodeRequired | |
RestrictAccessYes/No flag. When Yes, only the security roles assigned to the leave type can use it. | Enum
| No | Yes | LeaveType.RestrictAccess | |
RoundingTypeRounding method for leave amounts: none, up, down or nearest. | Enum
| No | Yes | LeaveType.RoundingType | |
RoundingPrecisionPrecision used when leave amounts are rounded. | RealLeaveRoundingPrecision | No | Yes | LeaveType.RoundingPrecision | |
HolidayCorrectionsYes/No flag. When Yes, holidays are taken off balances when time off accrues. | Enum
| No | Yes | LeaveType.HolidayCorrections | |
CarryForwardLeaveTypePoints to the leave type that receives the carried-forward balance from this type. | Int64LeaveTypeRecId | No | Yes | LeaveType.RecId | LeaveType.CarryForwardLeaveType |
ExpirationRuleTimeUnitTime unit of the balance expiration rule: none, days or months. | Enum
| No | Yes | LeaveType.ExpirationRuleTimeUnit | |
ExpirationRuleDurationNumber of time units after which a balance expires. | IntegerLeaveExpirationRuleDuration | No | Yes | LeaveType.ExpirationRuleDuration | |
ExpirationRuleEffectiveDateDate from which the balance expiration rule applies. | DateLeaveExpirationRuleEffectiveDate | No | Yes | LeaveType.ExpirationRuleEffectiveDate | |
CalendarColorColour used to show this leave type on a calendar, held as text. | String | No | Yes | computed | |
LeaveAmountUnitUnit for all leave amounts of this type: hours or days. | Enum
| No | Yes | LeaveType.LeaveAmountUnit | |
EnableHalfDayDefinitionYes/No flag. When Yes, workers can say which half of the day they are away. | Enum
| No | Yes | LeaveType.EnableHalfDayDefinition | |
IsAttachmentRequiredYes/No flag showing whether documents must be attached to requests of this type. | Enum
| No | Yes | LeaveType.IsAttachmentRequired | |
RequestTypeShows whether the type is used for time off or for a leave of absence. | Enum
| Yes | Yes | LeaveType.RequestType | |
IsOpenEndedYes/No flag. When Yes, open-ended leave of absence requests are allowed. | Enum
| No | Yes | LeaveType.IsOpenEnded | |
IsReturnToWorkNoticeRequiredYes/No flag. When Yes, workers can be asked to send a return to work notice. | Enum
| No | Yes | LeaveType.IsReturnToWorkNoticeRequired | |
IncludeWeekendAndHolidaysYes/No flag showing whether closed days and holidays count in a request. | Enum
| No | Yes | LeaveType.IncludeWeekendAndHolidays | |
IncludeClosedDaysYes/No flag showing whether closed days count in a request. | Enum
| No | Yes | LeaveType.IncludeClosedDays | |
IncludeHolidaysYes/No flag showing whether holidays count in a request. | Enum
| No | Yes | LeaveType.IncludeHolidays | |
ClosedDaysWorkingHoursNumber of hours that count as one closed day. It must be above 0 and not more than 24. | RealClosedDaysWorkingHours | No | Yes | LeaveType.ClosedDaysWorkingHours | |
AttachmentRequiredOnCreateYes/No flag showing whether an attachment is needed when a leave request is created. | Enum
| No | Yes | LeaveType.AttachmentRequiredOnCreate | |
AttachmentRequiredOnUpdateYes/No flag showing whether an attachment is needed when a leave request is updated. | Enum
| No | Yes | LeaveType.AttachmentRequiredOnUpdate | |
AttachmentRequiredOnCancelYes/No flag showing whether an attachment is needed when a leave request is cancelled. | Enum
| No | Yes | LeaveType.AttachmentRequiredOnCancel | |
HideLeaveBalancesYes/No flag. When Yes, workers do not see their balance for this leave type. | Enum
| No | Yes | LeaveType.HideLeaveBalances | |
EarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | Yes | Yes | PayrollEarningCode.EarningCode | |
EarningCodeA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | No (private) | PayrollEarningCode.RecId |
Foreign keys (2)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
WorkflowId→WorkflowTable.SequenceNumber(key of WorkflowTable)Many LeaveType records → exactly one WorkflowTable record
WorkflowTable details: see LeaveRequestWorkflowEntity, CFMPaymentRequestTypeEntity, WorkflowEntity
CarryForwardLeaveType→LeaveType.RecId(key of LeaveType)Many LeaveType records → zero or one LeaveType record
LeaveType details: see EssLeaveBalanceEntity, LeaveBalanceActiveEntity, LeaveBalanceEntity
Need help with LeaveTypeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.