Data entity

LeaveRequestV2Entity

A second version of the leave and time off request entity, with one row per request, leave type and date. It has the same key and the same 15 fields as the original leave request entity. Each row includes the amount, half day definition, status, submitter details and reason code.

Entity name
LeaveRequestV2Entity
Public entity name
LeaveRequestV2
OData collection
LeaveRequestsV2
Category
Document
Module
HRM
Read-only
No
Data management enabled
Yes
Configuration key
LeaveAbsence
Keys
RequestId, LeaveType, LeaveDate
Staging table
LeaveRequestV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/LeaveRequestsV2
Dataverse virtual table
mserp_leaverequestv2entity. 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 · root
  • HcmWorker · InnerJoin to LeaveRequest · read-only
  • LeaveRequestDetail · InnerJoin to LeaveRequest
  • LeaveType · InnerJoin to LeaveRequestDetail · read-only
  • HcmReasonCode · OuterJoin to LeaveRequest · read-only

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RequestIdIdentifier of the leave request.String (20)
LeaveRequestId
NoYesLeaveRequest.RequestId
LeaveTypeShort name that identifies the leave type.String (30)
LeaveTypeId
YesYesLeaveType.Type
LeaveDateDate of the leave on this line.Date
LeaveDate
YesYesLeaveRequestDetail.LeaveDate
AmountAmount of leave taken on this date.Real
LeaveRequestAmount
NoYesLeaveRequestDetail.Amount
HalfDayDefinitionShows whether the leave is for the first half of the day, the second half, or neither.Enum
LeaveHalfDayDefinition
  • None 0
  • FirstHalf 1
  • SecondHalf 2
NoYesLeaveRequestDetail.HalfDayDefinition
CommentFree-text comment on the request.String (-1)
LeaveRequestComment
NoYesLeaveRequest.Comment
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed.Enum
LeaveRequestApprovalStatus
  • Draft 0
  • Submitted 1
  • InReview 2
  • Canceled 3
  • Denied 4
  • Approved 5
  • Failed 6
  • Processing 7
  • ChangeRequested 8
  • Completed 9
YesYesLeaveRequest.Status
RequestDateDate on which the request was submitted.Date
LeaveRequestDate
NoYesLeaveRequest.RequestDate
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveRequest.IsSubmittedOnBehalfOf
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveRequest.IsSubmittedByManager
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveRequest.IsSubmittedByHumanResources
IsSubmittedByAbsenceManagerShows whether an absence manager submitted the request: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveRequest.IsSubmittedByAbsenceManager
SubmittedByUserUser ID of the person who submitted the request. It relates to the user table.String
UserId
NoYesLeaveRequest.SubmittedByUser
ReasonCodeIdCode that identifies the reason code.String (15)
HcmReasonCodeId
NoYesHcmReasonCode.ReasonCodeId

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

Email sales@drdynamics.co.uk