Data entity
LeaveApprovedRequestsEntity
Read-only list of approved leave requests, one row per request period and amount. It links the request to the worker and the leave type. It shows the dates, the amount, the unit and the half-day definition.
- Entity name
LeaveApprovedRequestsEntity- Public entity name
ApprovedLeaveRequest- OData collection
ApprovedLeaveRequests- Category
Document- Module
HRM- Read-only
Yes- Data management enabled
No- Configuration key
LeaveAbsence- Keys
Request, StartDate, EndDate, LeaveType, Amount, Worker- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ApprovedLeaveRequests- Dataverse virtual table
mserp_leaveapprovedrequestsentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Not enabled for import and export projects.
Data sources
LeaveApprovedRequests· root · read-onlyLeaveRequestMaster(tableLeaveRequest) · InnerJoin toLeaveApprovedRequestsHcmWorkerMain(tableHcmWorker) · InnerJoin toLeaveRequestMasterLeaveType· InnerJoin toLeaveApprovedRequests
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
RequestIdIdentifier of the leave request. | String (20)LeaveRequestId | No | Yes | LeaveRequest.RequestId | |
TypeShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | Yes | LeaveType.Type | |
AmountAmount of leave taken on this date. | RealLeaveRequestAmount | No | Yes | LeaveRequestDetail.Amount | |
EndDateDate of the leave on this line. | DateLeaveDate | Yes | Yes | LeaveRequestDetail.LeaveDate | |
HalfDayDefinitionShows how a half day is defined for the leave. It holds a fixed list of values. | Enum
| No | Yes | computed in view | |
LeaveTypePoints to the leave type taken on this date. | Int64LeaveTypeRecId | Yes | No (private) | LeaveType.RecId | LeaveRequestDetail.LeaveType |
RequestPoints to the leave request that this line belongs to. | Int64LeaveRequestRecId | Yes | No (private) | LeaveRequest.RecId | LeaveRequestDetail.Request |
StartDateDate of the leave on this line. | DateLeaveDate | Yes | Yes | LeaveRequestDetail.LeaveDate | |
LeaveUnitThe unit in which the leave amount is measured, given as text. | String | No | Yes | virtual | |
WorkerPoints to the worker the request is for. | Int64HcmWorkerRecId | Yes | No (private) | HcmWorker.RecId | LeaveRequest.Worker |
RequestTypeShows whether the type is used for time off or for a leave of absence. | Enum
| Yes | Yes | LeaveType.RequestType |
Foreign keys (3)
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.
LeaveType→LeaveType.RecId(key of LeaveType)Many LeaveRequestDetail records → exactly one LeaveType record
LeaveType details: see LeaveTypeEntity, EssLeaveBalanceEntity, LeaveBalanceActiveEntity
Request→LeaveRequest.RecId(key of LeaveRequest)Many LeaveRequestDetail records → exactly one LeaveRequest record
LeaveRequest details: see LeaveOfAbsenceRequestEntity, LeaveRequestEntity, LeaveRequestV2Entity
Worker→HcmWorker.RecId(key of HcmWorker)Many LeaveRequest records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with LeaveApprovedRequestsEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.