Data entity
LeaveRequestEntity
Holds leave and time off requests at day level. Each row is one leave type on one date within a request, so a request can span many rows. The key is the request ID, leave type and date. Each row also carries the worker's personnel number, the status and the reason code.
- Entity name
LeaveRequestEntity- Public entity name
LeaveRequest- OData collection
LeaveRequests- Category
Document- Module
HRM- Read-only
No- Data management enabled
Yes- Configuration key
LeaveAbsence- Keys
RequestId, LeaveType, LeaveDate- Staging table
LeaveRequestStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveRequests- Dataverse virtual table
mserp_leaverequestentity. 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
LeaveRequest· rootHcmWorker· InnerJoin toLeaveRequest· read-onlyLeaveRequestDetail· InnerJoin toLeaveRequestLeaveType· InnerJoin toLeaveRequestDetail· read-onlyHcmReasonCode· OuterJoin toLeaveRequest· read-only
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
RequestIdIdentifier of the leave request. | String (20)LeaveRequestId | No | Yes | LeaveRequest.RequestId | |
LeaveTypeShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | Yes | LeaveType.Type | |
LeaveDateDate of the leave on this line. | DateLeaveDate | Yes | Yes | LeaveRequestDetail.LeaveDate | |
AmountAmount of leave taken on this date. | RealLeaveRequestAmount | No | Yes | LeaveRequestDetail.Amount | |
HalfDayDefinitionShows whether the leave is for the first half of the day, the second half, or neither. | Enum
| No | Yes | LeaveRequestDetail.HalfDayDefinition | |
CommentFree-text comment on the request. | String (-1)LeaveRequestComment | No | Yes | LeaveRequest.Comment | |
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed. | Enum
| Yes | Yes | LeaveRequest.Status | |
RequestDateDate on which the request was submitted. | DateLeaveRequestDate | No | Yes | LeaveRequest.RequestDate | |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes. | Enum
| No | Yes | LeaveRequest.IsSubmittedOnBehalfOf | |
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes. | Enum
| No | Yes | LeaveRequest.IsSubmittedByManager | |
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes. | Enum
| No | Yes | LeaveRequest.IsSubmittedByHumanResources | |
IsSubmittedByAbsenceManagerShows whether an absence manager submitted the request: Unknown, No or Yes. | Enum
| No | Yes | LeaveRequest.IsSubmittedByAbsenceManager | |
SubmittedByUserUser ID of the person who submitted the request. It relates to the user table. | StringUserId | No | Yes | LeaveRequest.SubmittedByUser | |
ReasonCodeIdCode that identifies the reason code. | String (15)HcmReasonCodeId | No | Yes | HcmReasonCode.ReasonCodeId |
Need help with LeaveRequestEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.