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 · root
  • HcmWorker · InnerJoin to LeaveBuySellRequest · read-only
  • LeaveType · InnerJoin to LeaveBuySellRequest · read-only
  • LeaveBuySellPolicy · OuterJoin to LeaveBuySellRequest · read-only

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RequestIdIdentifier of the buy or sell request.String (20)
LeaveBuySellRequestId
NoYesLeaveBuySellRequest.RequestId
RequestDateDate on which the request was submitted.Date
LeaveBuySellRequestDate
NoYesLeaveBuySellRequest.RequestDate
WorkerPoints to the worker the request is for.Int64
HcmWorkerRecId
YesNo (private)HcmWorker.RecIdLeaveBuySellRequest.Worker
LeaveTypePoints to the leave type being bought or sold.Int64
LeaveTypeRecId
YesNo (private)LeaveType.RecIdLeaveBuySellRequest.LeaveType
AmountAmount of leave covered by the request.Real
LeaveBuySellRequestAmount
NoYesLeaveBuySellRequest.Amount
RequestTypeShows whether the request is to buy leave or to sell leave.Enum
LeaveBuySellRequestType
  • BuyRequest 0
  • SellRequest 1
NoYesLeaveBuySellRequest.RequestType
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed.Enum
LeaveBuySellRequestApprovalStatus
  • Draft 0
  • Submitted 1
  • InReview 2
  • Canceled 3
  • Denied 4
  • Approved 5
  • Failed 6
  • Processing 7
  • ChangeRequested 8
  • Completed 9
NoYesLeaveBuySellRequest.Status
PolicyPoints to the buy and sell leave policy that applies to the request.Int64
LeaveBuySellPolicyRecId
NoNo (private)LeaveBuySellPolicy.RecIdLeaveBuySellRequest.Policy
SubmittedByUserUser ID of the person who submitted the request.String
UserId
NoYesLeaveBuySellRequest.SubmittedByUser
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveBuySellRequest.IsSubmittedOnBehalfOf
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveBuySellRequest.IsSubmittedByManager
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes.Enum
UnknownNoYes
  • Unknown 0
  • No 1
  • Yes 2
NoYesLeaveBuySellRequest.IsSubmittedByHumanResources
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
YesYesHcmWorker.PersonnelNumber
LeaveTypeIdShort name that identifies the leave type.String (30)
LeaveTypeId
YesYesLeaveType.Type
PolicyIdName of the buy and sell leave policy.String (30)
LeaveBuySellPolicyName
YesYesLeaveBuySellPolicy.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.

Need help with LeaveBuySellRequestEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk