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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PolicyName of the buy and sell leave policy. | String (30)LeaveBuySellPolicyName | Yes | LeaveBuySellPolicyEntityLeaveBuySellPolicyBuyTierEntityLeaveBuySellPolicySellTierEntityand 1 more | |
CategoryPolicy type: based on an amount or on hours per week. | EnumLeaveBuySellPolicyTypeCategory (enum) | No | LeaveBuySellPolicyEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort description of the policy. | String (60)HrmDescription | No | LeaveBuySellPolicyEntity | |
EndDateLast date the policy is active. | DateLeaveEndDate | Yes | LeaveBuySellPolicyEntity | |
MaximumAmount_BuyFixed maximum amount of leave that can be bought. | RealLeaveAmountUnsigned | No | LeaveBuySellPolicyEntity | |
MaximumAmount_SellFixed maximum amount of leave that can be sold. | RealLeaveAmountUnsigned | No | LeaveBuySellPolicyEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
StartDateDate the policy becomes active. | DateLeaveStartDate | Yes | LeaveBuySellPolicyEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
UseFullTimeEquivalency_BuyYes/no option to use the worker's full time equivalency for the buy limit. | EnumNoYes (enum) | No | LeaveBuySellPolicyEntity | |
UseFullTimeEquivalency_SellYes/no option to use the worker's full time equivalency for the sell limit. | EnumNoYes (enum) | No | LeaveBuySellPolicyEntity | |
WorkflowIdID of the workflow linked to the policy. | String (20)WorkflowSequenceNumber | No | None |
Indexes (1)
PolicyIdxReplacement keyUnique, 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.
LeaveBuySellPolicyEntity· 9 fields from this tableLeaveBuySellPolicyBuyTierEntity· 1 field from this tableLeaveBuySellPolicySellTierEntity· 1 field from this tableLeaveBuySellRequestEntity· 1 field from this table
Need help with LeaveBuySellPolicy in a report, an integration or a migration? Talk to Dr Dynamics.