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· rootHcmWorker· InnerJoin toLeaveEnrollment· read-onlyLeavePlan· InnerJoin toLeaveEnrollment· read-only
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
WorkerPoints to the enrolled worker. | Int64HcmWorkerRecId | Yes | No (private) | HcmWorker.RecId | LeaveEnrollment.Worker |
LeavePlanPoints to the leave and absence plan the worker is enrolled in. | Int64LeavePlanRecId | Yes | No (private) | LeavePlan.RecId | LeaveEnrollment.Plan |
IsAccrualSuspendedYes/No flag. When Yes, accruals are not processed for this enrolment. | Enum
| No | Yes | LeaveEnrollment.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
| Yes | Yes | LeaveEnrollment.TierBasis | |
CustomDateCustom date for the enrolment. It is presumably used when the tier basis is a custom date.low confidence | DateLeaveDate | No | Yes | LeaveEnrollment.CustomDate | |
StartDateDate on which the worker was enrolled in the plan. | DateLeaveStartDate | Yes | Yes | LeaveEnrollment.StartDate | |
EndDateDate on which the enrolment ends. | DateLeaveEndDate | Yes | Yes | LeaveEnrollment.EndDate | |
AccrualStartDateDate from which accruals begin for this enrolment. | DateLeaveDate | Yes | Yes | LeaveEnrollment.AccrualStartDate | |
AccrualDateBasisDate used as the starting point for accrual periods. It also acts as the anniversary date for carry-forward balances. | DateLeaveDate | No | Yes | LeaveEnrollment.AccrualDateBasis | |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
LeavePlanIdShort name that identifies the plan. | String (30)LeavePlanName | Yes | Yes | LeavePlan.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.
Worker→HcmWorker.RecId(key of HcmWorker)Many LeaveEnrollment records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
LeavePlan→LeavePlan.RecId(key of LeavePlan)Many LeaveEnrollment records → exactly one LeavePlan record
LeavePlan details: see LeavePlanEntity, LeavePlanV2Entity, EssLeaveBalanceEntity
Need help with LeaveEnrollmentV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.