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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RequestIdIdentifier of the leave request. | String (20)LeaveRequestId | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveOfAbsenceRequestEntityand 25 more | |
CommentFree-text comment on the request. | String (-1)LeaveRequestComment | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 9 more | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | LeaveRequestHeaderEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
IsSubmittedByAbsenceManagerShows whether an absence manager submitted the request: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 2 more | |
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more | |
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more | |
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more | |
LeaveClassificationShows whether the request is for time off or for a leave of absence. | EnumLeaveClassification (enum) | No | EssLeaveRequestAssignedHeaderEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReasonCodePoints to the reason code given for the request. | Int64HcmReasonCodeRecId | No | HcmReasonCode.RecId | MssPendingLeaveRequestWorkflowEntityMssPendingLoaRequestWorkflowEntityMssHRTeamsAppPendingLoaEntityand 1 more |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | EssLeaveRequestAssignedHeaderEntityEssLeaveRequestHeaderEntityEssLoaRequestEntityand 5 more | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RequestDateDate on which the request was submitted. | DateLeaveRequestDate | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 9 more | |
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed. | EnumLeaveRequestApprovalStatus (enum) | Yes | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 7 more | |
SubmittedByUserUser ID of the person who submitted the request. It relates to the user table. | StringUserId | No | LeaveRequestV2EntityLeaveOfAbsenceRequestEntityLeaveRequestEntityand 3 more | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WorkerPoints to the worker the request is for. | Int64HcmWorkerRecId | Yes | HcmWorker.RecId | LeaveRequestHeaderEntityEssLeaveRequestAssignedHeaderEntityEssLeaveRequestEntityand 13 more |
Indexes (2)
RequestIdIdxReplacement keyUnique, alternate key.
WorkerDateIdxNot unique.
Relations (3)
Each relation joins LeaveRequest to another table on the fields shown.
HcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany LeaveRequest records → exactly one HcmWorker record
SubmittedByUserInfo→UserInfoJoin on
SubmittedByUser = UserInfo.idMany LeaveRequest records → zero or one UserInfo record
ReasonCode→HcmReasonCodeJoin on
ReasonCode = HcmReasonCode.RecIdMany 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.
LeaveRequestV2Entity· 9 fields from this tableLeaveOfAbsenceRequestEntity· 10 fields from this tableLeaveRequestEntity· 9 fields from this tableLeaveRequestHeaderEntity· 6 fields from this tableEssLeaveRequestAssignedHeaderEntity· 11 fields from this tableEssLeaveRequestEntity· 5 fields from this tableEssLeaveRequestHeaderEntity· 11 fields from this tableEssLoaRequestEntity· 12 fields from this tableMssPendingLeaveRequestWorkflowEntity· 5 fields from this tableMssPendingLoaRequestWorkflowEntity· 5 fields from this tableLeaveAccrualSuspensionEntity· 1 field from this tableLeaveOfAbsenceRequestDetailEntity· 2 fields from this tableLeaveRequestAttachmentEntity· 1 field from this tableLeaveRequestDetailEntity· 1 field from this tableEssLeaveRequestAssignedDetailEntity· 2 fields from this tableEssLeaveRequestAttachmentEntity· 2 fields from this tableEssLeaveRequestDetailEntity· 3 fields from this tableEssLeaveApprovedRequestEntity· 2 fields from this tableEssLoaRequestDetailApproverEntity· 3 fields from this tableEssTimeOffDetailApproverEntity· 3 fields from this tableLeaveApprovedRequestsEntity· 2 fields from this tableMssHRTeamsAppPendingLoaEntity· 5 fields from this tableMssHRTeamsAppPendingTimeoffEntity· 5 fields from this tableMssLeaveRequestAttachmentEntity· 2 fields from this tableMssLeaveRequestDateEntity· 4 fields from this table
Need help with LeaveRequest in a report, an integration or a migration? Talk to Dr Dynamics.