Table
LeaveBuySellRequest
Buy or sell leave request
Holds requests by workers to buy or sell leave. Each record has a request ID, a submission date, the worker, the leave type, the amount and an approval status. It also records the policy used and who submitted the request.
- Table name
LeaveBuySellRequest- 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 (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountAmount of leave covered by the request. | RealLeaveBuySellRequestAmount | No | LeaveBuySellRequestEntity | |
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 | None | |
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveBuySellRequestEntity | |
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveBuySellRequestEntity | |
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes. | EnumUnknownNoYes (enum) | No | LeaveBuySellRequestEntity | |
LeaveTypePoints to the leave type being bought or sold. | Int64LeaveTypeRecId | Yes | LeaveType.RecId | LeaveBuySellRequestEntity |
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 | |
PolicyPoints to the buy and sell leave policy that applies to the request. | Int64LeaveBuySellPolicyRecId | No | LeaveBuySellPolicy.RecId | LeaveBuySellRequestEntity |
PolicyBuyTierReference to a buy tier record of the policy. The metadata does not name the related table.low confidence | Int64LeaveBuySellPolicyBuyTierRecId | 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 | |
RequestDateDate on which the request was submitted. | DateLeaveBuySellRequestDate | No | LeaveBuySellRequestEntity | |
RequestIdIdentifier of the buy or sell request. | String (20)LeaveBuySellRequestId | No | LeaveBuySellRequestEntity | |
RequestTypeShows whether the request is to buy leave or to sell leave. | EnumLeaveBuySellRequestType (enum) | No | LeaveBuySellRequestEntity | |
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed. | EnumLeaveBuySellRequestApprovalStatus (enum) | No | LeaveBuySellRequestEntity | |
SubmittedByUserUser ID of the person who submitted the request. | StringUserId | No | LeaveBuySellRequestEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WorkerPoints to the worker the request is for. | Int64HcmWorkerRecId | Yes | HcmWorker.RecId | LeaveBuySellRequestEntity |
Indexes (1)
RequestIdxUnique, alternate key.
Relations (3)
Each relation joins LeaveBuySellRequest to another table on the fields shown.
HcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany LeaveBuySellRequest records → exactly one HcmWorker record
LeaveType→LeaveTypeJoin on
LeaveType = LeaveType.RecIdMany LeaveBuySellRequest records → exactly one LeaveType record
LeaveBuySellPolicy→LeaveBuySellPolicyJoin on
Policy = LeaveBuySellPolicy.RecIdMany LeaveBuySellRequest records → exactly one LeaveBuySellPolicy record
Get this data out
Tables are not exposed directly. These public entities read from LeaveBuySellRequest; use one of them in Power BI, Power Platform or a data management project.
LeaveBuySellRequestEntity· 12 fields from this table
Need help with LeaveBuySellRequest in a report, an integration or a migration? Talk to Dr Dynamics.