Table
LeaveRequestDetail
Leave and absence request detail
Holds the daily lines of a leave request. Each line gives the leave type, a date and an amount, and can mark which half of the day is taken. It links to the leave request header.
- Table name
LeaveRequestDetail- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Leave
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountAmount of leave taken on this date. | RealLeaveRequestAmount | No | LeaveRequestDetailEntityEssLeaveRequestAssignedDetailEntityEssLeaveRequestDetailEntityand 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 | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | EssTimeOffDetailApproverEntity | |
HalfDayDefinitionShows whether the leave is for the first half of the day, the second half, or neither. | EnumLeaveHalfDayDefinition (enum) | No | LeaveRequestDetailEntityEssLeaveRequestAssignedDetailEntityEssLeaveRequestDetailEntityand 5 more | |
LeaveDateDate of the leave on this line. | DateLeaveDate | Yes | LeaveRequestDetailEntityEssLeaveRequestAssignedDetailEntityEssLeaveRequestDetailEntityand 13 more | |
LeaveTypePoints to the leave type taken on this date. | Int64LeaveTypeRecId | Yes | LeaveType.RecId | LeaveRequestDetailEntityEssLeaveRequestAssignedDetailEntityEssLeaveRequestDetailEntityand 4 more |
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 | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RequestPoints to the leave request that this line belongs to. | Int64LeaveRequestRecId | Yes | LeaveRequest.RecId | LeaveRequestDetailEntityEssLeaveRequestAssignedDetailEntityEssLeaveRequestDetailEntityand 4 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 |
Indexes (2)
RequestTypeDateIdxUnique, alternate key.
RequestDataAreaIdIdxNot unique.
Relations (2)
Each relation joins LeaveRequestDetail to another table on the fields shown.
LeaveRequest→LeaveRequestJoin on
Request = LeaveRequest.RecIdMany LeaveRequestDetail records → exactly one LeaveRequest record
LeaveType→LeaveTypeJoin on
LeaveType = LeaveType.RecIdMany LeaveRequestDetail records → exactly one LeaveType record
Get this data out
Tables are not exposed directly. These public entities read from LeaveRequestDetail; use one of them in Power BI, Power Platform or a data management project.
LeaveRequestDetailEntity· 5 fields from this tableEssLeaveRequestAssignedDetailEntity· 5 fields from this tableEssLeaveRequestDetailEntity· 5 fields from this tableEssTimeOffDetailApproverEntity· 6 fields from this tableMssLeaveRequestDateEntity· 5 fields from this tableLeaveRequestV2Entity· 3 fields from this tableLeaveRequestEntity· 3 fields from this tableEssLeaveRequestEntity· 3 fields from this tableEssLeaveApprovedRequestEntity· 5 fields from this tableLeaveApprovedRequestsEntity· 5 fields from this tableMssHRTeamsAppPendingTimeoffEntity· 3 fields from this tableMssPendingLeaveRequestWorkflowEntity· 3 fields from this table
Need help with LeaveRequestDetail in a report, an integration or a migration? Talk to Dr Dynamics.