Table

LeaveRequest

Leave request

Holds the header of a leave request, keyed by request ID. It records the worker, the submission date, the approval status and who submitted it. It also holds a comment, a reason code and whether the request is time off or a leave of absence.

Table name
LeaveRequest
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
RequestIdIdx
Key fields
RequestId
Model
Leave

Fields (22)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RequestIdIdentifier of the leave request.String (20)
LeaveRequestId
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveOfAbsenceRequestEntityand 25 more
CommentFree-text comment on the request.String (-1)
LeaveRequestComment
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 9 more
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoLeaveRequestHeaderEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
IsSubmittedByAbsenceManagerShows whether an absence manager submitted the request: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 2 more
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more
LeaveClassificationShows whether the request is for time off or for a leave of absence.Enum
LeaveClassification (enum)
NoEssLeaveRequestAssignedHeaderEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReasonCodePoints to the reason code given for the request.Int64
HcmReasonCodeRecId
NoHcmReasonCode.RecIdMssPendingLeaveRequestWorkflowEntityMssPendingLoaRequestWorkflowEntityMssHRTeamsAppPendingLoaEntityand 1 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoEssLeaveRequestAssignedHeaderEntityEssLeaveRequestHeaderEntityEssLoaRequestEntityand 5 more
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RequestDateDate on which the request was submitted.Date
LeaveRequestDate
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 9 more
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed.Enum
LeaveRequestApprovalStatus (enum)
YesLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 7 more
SubmittedByUserUser ID of the person who submitted the request. It relates to the user table.String
UserId
NoLeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WorkerPoints to the worker the request is for.Int64
HcmWorkerRecId
YesHcmWorker.RecIdLeaveRequestHeaderEntityEssLeaveRequestAssignedHeaderEntityEssLeaveRequestEntityand 13 more

Indexes (2)

Relations (3)

Each relation joins LeaveRequest to another table on the fields shown.

  • HcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many LeaveRequest records → exactly one HcmWorker record

  • SubmittedByUserInfo → UserInfo

    Join on SubmittedByUser = UserInfo.id

    Many LeaveRequest records → zero or one UserInfo record

  • ReasonCode → HcmReasonCode

    Join on ReasonCode = HcmReasonCode.RecId

    Many LeaveRequest records → zero or one HcmReasonCode record

Get this data out

Tables are not exposed directly. These public entities read from LeaveRequest; use one of them in Power BI, Power Platform or a data management project.

Need help with LeaveRequest in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk