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-only
  • LeaveRequestMaster (table LeaveRequest) · InnerJoin to LeaveApprovedRequests
  • HcmWorkerMain (table HcmWorker) · InnerJoin to LeaveRequestMaster
  • LeaveType · InnerJoin to LeaveApprovedRequests

Fields (12)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
RequestIdIdentifier of the leave request.String (20)
LeaveRequestId
NoYesLeaveRequest.RequestId
TypeShort name that identifies the leave type.String (30)
LeaveTypeId
YesYesLeaveType.Type
AmountAmount of leave taken on this date.Real
LeaveRequestAmount
NoYesLeaveRequestDetail.Amount
EndDateDate of the leave on this line.Date
LeaveDate
YesYesLeaveRequestDetail.LeaveDate
HalfDayDefinitionShows how a half day is defined for the leave. It holds a fixed list of values.Enum
LeaveRequestHalfDayDefination
  • None 0
  • FirstHalf 1
  • SecondHalf 2
  • FirstHalfEndDate 3
  • SecondHalfStartDate 4
  • FirstHalfEndDateAndSecondHalfStartDate 5
NoYescomputed in view
LeaveTypePoints to the leave type taken on this date.Int64
LeaveTypeRecId
YesNo (private)LeaveType.RecIdLeaveRequestDetail.LeaveType
RequestPoints to the leave request that this line belongs to.Int64
LeaveRequestRecId
YesNo (private)LeaveRequest.RecIdLeaveRequestDetail.Request
StartDateDate of the leave on this line.Date
LeaveDate
YesYesLeaveRequestDetail.LeaveDate
LeaveUnitThe unit in which the leave amount is measured, given as text.StringNoYesvirtual
WorkerPoints to the worker the request is for.Int64
HcmWorkerRecId
YesNo (private)HcmWorker.RecIdLeaveRequest.Worker
RequestTypeShows whether the type is used for time off or for a leave of absence.Enum
LeaveTypeRequestType
  • TimeOff 0
  • LeaveOfAbsence 1
YesYesLeaveType.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.

Need help with LeaveApprovedRequestsEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk