Data entity

LeaveRequestHeaderEntity

Holds one row per leave or time off request, without the daily detail. The key is the request ID. It shows the status, submission date, comment, worker's personnel number and reason code. Use the day-level leave request entities for the dates and amounts.

Entity name
LeaveRequestHeaderEntity
Public entity name
LeaveRequestHeader
OData collection
LeaveRequestHeaders
Category
Document
Module
HRM
Read-only
No
Data management enabled
Yes
Configuration key
LeaveAbsence
Keys
RequestId
Staging table
LeaveRequestHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/LeaveRequestHeaders
Dataverse virtual table
mserp_leaverequestheaderentity. 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
  • HcmReasonCode · OuterJoin to LeaveRequest · read-only

Fields (8)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RequestIdIdentifier of the leave request.String (20)
LeaveRequestId
NoYesLeaveRequest.RequestId
WorkerPoints to the worker the request is for.Int64
HcmWorkerRecId
YesNo (private)HcmWorker.RecIdLeaveRequest.Worker
RequestDateDate on which the request was submitted.Date
LeaveRequestDate
NoYesLeaveRequest.RequestDate
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
CommentFree-text comment on the request.String (-1)
LeaveRequestComment
NoYesLeaveRequest.Comment
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
ReasonCodeIdCode that identifies the reason code.String (15)
HcmReasonCodeId
NoYesHcmReasonCode.ReasonCodeId
RequestCreatedDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesLeaveRequest.CreatedDateTime

Foreign keys (1)

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 LeaveRequestHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk