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 · root
  • PayrollEarningCode · OuterJoin to LeaveType · read-only

Fields (30)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
TypeShort name that identifies the leave type.String (30)
LeaveTypeId
YesYesLeaveType.Type
DescriptionFree-text description of the leave type.String (60)
HrmDescription
NoYesLeaveType.Description
CategoryShows whether the leave is scheduled, unscheduled or has no category.Enum
LeaveTypeCategory
  • None 0
  • Scheduled 0
  • Unscheduled 0
NoYesLeaveType.Category
WorkflowIdPoints to the workflow configuration used for requests of this type.String (20)
WorkflowSequenceNumber
YesYesWorkflowTable.SequenceNumberLeaveType.WorkflowId
IsReasonCodeRequiredYes/No flag: when on, time off requests of this leave type cannot be submitted without a reason code.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IsReasonCodeRequired
RestrictAccessYes/No flag. When Yes, only the security roles assigned to the leave type can use it.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.RestrictAccess
RoundingTypeRounding method for leave amounts: none, up, down or nearest.Enum
LeaveRoundingType
  • None 0
  • Up 1
  • Down 2
  • Nearest 3
NoYesLeaveType.RoundingType
RoundingPrecisionPrecision used when leave amounts are rounded.Real
LeaveRoundingPrecision
NoYesLeaveType.RoundingPrecision
HolidayCorrectionsYes/No flag. When Yes, holidays are taken off balances when time off accrues.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.HolidayCorrections
CarryForwardLeaveTypePoints to the leave type that receives the carried-forward balance from this type.Int64
LeaveTypeRecId
NoYesLeaveType.RecIdLeaveType.CarryForwardLeaveType
ExpirationRuleTimeUnitTime unit of the balance expiration rule: none, days or months.Enum
LeaveExpirationRuleTimeUnit
  • None 0
  • Days 1
  • Months 2
NoYesLeaveType.ExpirationRuleTimeUnit
ExpirationRuleDurationNumber of time units after which a balance expires.Integer
LeaveExpirationRuleDuration
NoYesLeaveType.ExpirationRuleDuration
ExpirationRuleEffectiveDateDate from which the balance expiration rule applies.Date
LeaveExpirationRuleEffectiveDate
NoYesLeaveType.ExpirationRuleEffectiveDate
CalendarColorColour used to show this leave type on a calendar, held as text.StringNoYescomputed
LeaveAmountUnitUnit for all leave amounts of this type: hours or days.Enum
LeaveAmountUnit
  • Hours 0
  • Days 1
NoYesLeaveType.LeaveAmountUnit
EnableHalfDayDefinitionYes/No flag. When Yes, workers can say which half of the day they are away.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.EnableHalfDayDefinition
IsAttachmentRequiredYes/No flag showing whether documents must be attached to requests of this type.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IsAttachmentRequired
RequestTypeShows whether the type is used for time off or for a leave of absence.Enum
LeaveTypeRequestType
  • TimeOff 0
  • LeaveOfAbsence 1
YesYesLeaveType.RequestType
IsOpenEndedYes/No flag. When Yes, open-ended leave of absence requests are allowed.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IsOpenEnded
IsReturnToWorkNoticeRequiredYes/No flag. When Yes, workers can be asked to send a return to work notice.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IsReturnToWorkNoticeRequired
IncludeWeekendAndHolidaysYes/No flag showing whether closed days and holidays count in a request.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IncludeWeekendAndHolidays
IncludeClosedDaysYes/No flag showing whether closed days count in a request.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IncludeClosedDays
IncludeHolidaysYes/No flag showing whether holidays count in a request.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.IncludeHolidays
ClosedDaysWorkingHoursNumber of hours that count as one closed day. It must be above 0 and not more than 24.Real
ClosedDaysWorkingHours
NoYesLeaveType.ClosedDaysWorkingHours
AttachmentRequiredOnCreateYes/No flag showing whether an attachment is needed when a leave request is created.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.AttachmentRequiredOnCreate
AttachmentRequiredOnUpdateYes/No flag showing whether an attachment is needed when a leave request is updated.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.AttachmentRequiredOnUpdate
AttachmentRequiredOnCancelYes/No flag showing whether an attachment is needed when a leave request is cancelled.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.AttachmentRequiredOnCancel
HideLeaveBalancesYes/No flag. When Yes, workers do not see their balance for this leave type.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveType.HideLeaveBalances
EarningCodeIdUnique ID of the earning code.String (50)
PayrollEarningCodeId
YesYesPayrollEarningCode.EarningCode
EarningCodeA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (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.

Need help with LeaveTypeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk