Data entity

LeaveEnrollmentV2Entity

Second version of the leave enrolment entity. It holds the enrolment of workers in leave and absence plans, keyed by personnel number, plan and start date. It has the enrolment and end dates, accrual start date, accrual date basis, tier basis, a custom date and a switch to turn off accrual. It does not include the leave type.

Entity name
LeaveEnrollmentV2Entity
Public entity name
LeaveEnrollmentV2
OData collection
LeaveEnrollmentsV2
Category
Not set
Module
HRM
Read-only
No
Data management enabled
Yes
Configuration key
LeaveAbsence
Keys
PersonnelNumber, LeavePlanId, StartDate
Staging table
LeaveEnrollmentV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/LeaveEnrollmentsV2
Dataverse virtual table
mserp_leaveenrollmentv2entity. 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

  • LeaveEnrollment · root
  • HcmWorker · InnerJoin to LeaveEnrollment · read-only
  • LeavePlan · InnerJoin to LeaveEnrollment · read-only

Fields (11)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
WorkerPoints to the enrolled worker.Int64
HcmWorkerRecId
YesNo (private)HcmWorker.RecIdLeaveEnrollment.Worker
LeavePlanPoints to the leave and absence plan the worker is enrolled in.Int64
LeavePlanRecId
YesNo (private)LeavePlan.RecIdLeaveEnrollment.Plan
IsAccrualSuspendedYes/No flag. When Yes, accruals are not processed for this enrolment.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesLeaveEnrollment.IsAccrualSuspended
TierBasisChoice of which date is used to place the worker in the plan's tiers, such as hire date, anniversary date or hours worked.Enum
LeaveTierBasis
  • CustomDate 2
  • AdjustedWorkerStartDate 6
  • AnniversaryDate 4
  • EmploymentStartDate 0
  • OriginalHireDate 5
  • HoursWorked 3
  • SeniorityDate 1
YesYesLeaveEnrollment.TierBasis
CustomDateCustom date for the enrolment. It is presumably used when the tier basis is a custom date.low confidenceDate
LeaveDate
NoYesLeaveEnrollment.CustomDate
StartDateDate on which the worker was enrolled in the plan.Date
LeaveStartDate
YesYesLeaveEnrollment.StartDate
EndDateDate on which the enrolment ends.Date
LeaveEndDate
YesYesLeaveEnrollment.EndDate
AccrualStartDateDate from which accruals begin for this enrolment.Date
LeaveDate
YesYesLeaveEnrollment.AccrualStartDate
AccrualDateBasisDate used as the starting point for accrual periods. It also acts as the anniversary date for carry-forward balances.Date
LeaveDate
NoYesLeaveEnrollment.AccrualDateBasis
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
LeavePlanIdShort name that identifies the plan.String (30)
LeavePlanName
YesYesLeavePlan.Name

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 LeaveEnrollmentV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk