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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountAmount of leave covered by the request.Real
LeaveBuySellRequestAmount
NoLeaveBuySellRequestEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
IsSubmittedByHumanResourcesShows whether Human Resources submitted the request: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveBuySellRequestEntity
IsSubmittedByManagerShows whether a manager submitted the request: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveBuySellRequestEntity
IsSubmittedOnBehalfOfShows whether the request was submitted for another person: Unknown, No or Yes.Enum
UnknownNoYes (enum)
NoLeaveBuySellRequestEntity
LeaveTypePoints to the leave type being bought or sold.Int64
LeaveTypeRecId
YesLeaveType.RecIdLeaveBuySellRequestEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PolicyPoints to the buy and sell leave policy that applies to the request.Int64
LeaveBuySellPolicyRecId
NoLeaveBuySellPolicy.RecIdLeaveBuySellRequestEntity
PolicyBuyTierReference to a buy tier record of the policy. The metadata does not name the related table.low confidenceInt64
LeaveBuySellPolicyBuyTierRecId
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RequestDateDate on which the request was submitted.Date
LeaveBuySellRequestDate
NoLeaveBuySellRequestEntity
RequestIdIdentifier of the buy or sell request.String (20)
LeaveBuySellRequestId
NoLeaveBuySellRequestEntity
RequestTypeShows whether the request is to buy leave or to sell leave.Enum
LeaveBuySellRequestType (enum)
NoLeaveBuySellRequestEntity
StatusApproval status of the request, for example Draft, Submitted, Approved or Completed.Enum
LeaveBuySellRequestApprovalStatus (enum)
NoLeaveBuySellRequestEntity
SubmittedByUserUser ID of the person who submitted the request.String
UserId
NoLeaveBuySellRequestEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WorkerPoints to the worker the request is for.Int64
HcmWorkerRecId
YesHcmWorker.RecIdLeaveBuySellRequestEntity

Indexes (1)

Relations (3)

Each relation joins LeaveBuySellRequest to another table on the fields shown.

  • HcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many LeaveBuySellRequest records → exactly one HcmWorker record

  • LeaveType → LeaveType

    Join on LeaveType = LeaveType.RecId

    Many LeaveBuySellRequest records → exactly one LeaveType record

  • LeaveBuySellPolicy → LeaveBuySellPolicy

    Join on Policy = LeaveBuySellPolicy.RecId

    Many 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.

Need help with LeaveBuySellRequest in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk