Data entity
LeaveBuySellRequestEntity
Holds requests from workers to buy or sell leave. The key is the request ID. Each request shows the submission date, amount, request type and status. It also shows who submitted it, and whether a manager or Human Resources did so. It links to the worker, leave type and policy.
- Entity name
LeaveBuySellRequestEntity- Public entity name
LeaveBuySellRequest- OData collection
LeaveBuySellRequests- Category
Not set- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
RequestId- Staging table
LeaveBuySellRequestStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveBuySellRequests- Dataverse virtual table
mserp_leavebuysellrequestentity. 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
LeaveBuySellRequest· rootHcmWorker· InnerJoin toLeaveBuySellRequest· read-onlyLeaveType· InnerJoin toLeaveBuySellRequest· read-onlyLeaveBuySellPolicy· OuterJoin toLeaveBuySellRequest· read-only
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
RequestIdIdentifier of the buy or sell request. | String (20)LeaveBuySellRequestId | No | Yes | LeaveBuySellRequest.RequestId | |
RequestDateDate on which the request was submitted. | DateLeaveBuySellRequestDate | No | Yes | LeaveBuySellRequest.RequestDate | |
WorkerPoints to the worker the request is for. | Int64HcmWorkerRecId | Yes | No (private) | HcmWorker.RecId | LeaveBuySellRequest.Worker |
LeaveTypePoints to the leave type being bought or sold. | Int64LeaveTypeRecId | Yes | No (private) | LeaveType.RecId | LeaveBuySellRequest.LeaveType |
AmountAmount of leave covered by the request. | RealLeaveBuySellRequestAmount | No | Yes | LeaveBuySellRequest.Amount | |
RequestTypeShows whether the request is to buy leave or to sell leave. | Enum
| No | Yes | LeaveBuySellRequest.RequestType | |
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed. | Enum
| No | Yes | LeaveBuySellRequest.Status | |
PolicyPoints to the buy and sell leave policy that applies to the request. | Int64LeaveBuySellPolicyRecId | No | No (private) | LeaveBuySellPolicy.RecId | LeaveBuySellRequest.Policy |
SubmittedByUserUser ID of the person who submitted the request. | StringUserId | No | Yes | LeaveBuySellRequest.SubmittedByUser | |
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes. | Enum
| No | Yes | LeaveBuySellRequest.IsSubmittedOnBehalfOf | |
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes. | Enum
| No | Yes | LeaveBuySellRequest.IsSubmittedByManager | |
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes. | Enum
| No | Yes | LeaveBuySellRequest.IsSubmittedByHumanResources | |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | Yes | Yes | HcmWorker.PersonnelNumber | |
LeaveTypeIdShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | Yes | LeaveType.Type | |
PolicyIdName of the buy and sell leave policy. | String (30)LeaveBuySellPolicyName | Yes | Yes | LeaveBuySellPolicy.Policy |
Foreign keys (3)
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.
Worker→HcmWorker.RecId(key of HcmWorker)Many LeaveBuySellRequest records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
LeaveType→LeaveType.RecId(key of LeaveType)Many LeaveBuySellRequest records → exactly one LeaveType record
LeaveType details: see LeaveTypeEntity, EssLeaveBalanceEntity, LeaveBalanceActiveEntity
Policy→LeaveBuySellPolicy.RecId(key of LeaveBuySellPolicy)Many LeaveBuySellRequest records → exactly one LeaveBuySellPolicy record
LeaveBuySellPolicy details: see LeaveBuySellPolicyEntity, LeaveBuySellPolicyBuyTierEntity, LeaveBuySellPolicySellTierEntity
Need help with LeaveBuySellRequestEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.