Table

LeaveBuySellPolicy

Buy and sell leave policy

Defines policies for buying and selling leave, one record per policy name. Each has start and end dates, a policy type (amount or hours per week), maximum buy and sell amounts, full time equivalency options and a workflow ID.

Table name
LeaveBuySellPolicy
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
PolicyIdx
Key fields
Policy
Model
Leave

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PolicyName of the buy and sell leave policy.String (30)
LeaveBuySellPolicyName
YesLeaveBuySellPolicyEntityLeaveBuySellPolicyBuyTierEntityLeaveBuySellPolicySellTierEntityand 1 more
CategoryPolicy type: based on an amount or on hours per week.Enum
LeaveBuySellPolicyTypeCategory (enum)
NoLeaveBuySellPolicyEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort description of the policy.String (60)
HrmDescription
NoLeaveBuySellPolicyEntity
EndDateLast date the policy is active.Date
LeaveEndDate
YesLeaveBuySellPolicyEntity
MaximumAmount_BuyFixed maximum amount of leave that can be bought.Real
LeaveAmountUnsigned
NoLeaveBuySellPolicyEntity
MaximumAmount_SellFixed maximum amount of leave that can be sold.Real
LeaveAmountUnsigned
NoLeaveBuySellPolicyEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
StartDateDate the policy becomes active.Date
LeaveStartDate
YesLeaveBuySellPolicyEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UseFullTimeEquivalency_BuyYes/no option to use the worker's full time equivalency for the buy limit.Enum
NoYes (enum)
NoLeaveBuySellPolicyEntity
UseFullTimeEquivalency_SellYes/no option to use the worker's full time equivalency for the sell limit.Enum
NoYes (enum)
NoLeaveBuySellPolicyEntity
WorkflowIdID of the workflow linked to the policy.String (20)
WorkflowSequenceNumber
NoNone

Indexes (1)

  • PolicyIdxReplacement key

    Policy

    Unique, alternate key.

Get this data out

Tables are not exposed directly. These public entities read from LeaveBuySellPolicy; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk