Data entity
LeaveEnrollmentEntity
Holds the enrolment of workers in leave and absence plans. Each row is 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 also shows the leave type.
- Entity name
LeaveEnrollmentEntity- Public entity name
LeaveEnrollment- OData collection
LeaveEnrollments- Category
Not set- Module
HRM- Read-only
No- Data management enabled
Yes- Configuration key
LeaveAbsence- Keys
PersonnelNumber, LeavePlanId, StartDate- Staging table
LeaveEnrollmentStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveEnrollments- Dataverse virtual table
mserp_leaveenrollmententity. 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-onlyLeaveType· InnerJoin toLeavePlan· read-only
Fields (12)
| 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 | |
LeaveTypeShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | Yes | LeaveType.Type |
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 LeaveEnrollmentEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.