Data entity
LeaveBuySellPolicyEntity
Holds buy and sell leave policies. The key is the policy code. Each policy has a name, description, start and end dates, a policy type, and full time equivalency and maximum fixed amounts for buying and for selling leave.
- Entity name
LeaveBuySellPolicyEntity- Public entity name
LeaveBuySellPolicy- OData collection
LeaveBuySellPolicies- Category
Not set- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
Policy- Staging table
LeaveBuySellPolicyStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveBuySellPolicies- Dataverse virtual table
mserp_leavebuysellpolicyentity. 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
LeaveBuySellPolicy· root
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
UseFullTimeEquivalency_BuyYes/no option to use the worker's full time equivalency for the buy limit. | Enum
| No | Yes | LeaveBuySellPolicy.UseFullTimeEquivalency_Buy | |
UseFullTimeEquivalency_SellYes/no option to use the worker's full time equivalency for the sell limit. | Enum
| No | Yes | LeaveBuySellPolicy.UseFullTimeEquivalency_Sell | |
PolicyName of the buy and sell leave policy. | String (30)LeaveBuySellPolicyName | Yes | Yes | LeaveBuySellPolicy.Policy | |
StartDateDate the policy becomes active. | DateLeaveStartDate | Yes | Yes | LeaveBuySellPolicy.StartDate | |
EndDateLast date the policy is active. | DateLeaveEndDate | Yes | Yes | LeaveBuySellPolicy.EndDate | |
CategoryPolicy type: based on an amount or on hours per week. | Enum
| No | Yes | LeaveBuySellPolicy.Category | |
MaximumAmount_BuyFixed maximum amount of leave that can be bought. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicy.MaximumAmount_Buy | |
MaximumAmount_SellFixed maximum amount of leave that can be sold. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicy.MaximumAmount_Sell | |
DescriptionShort description of the policy. | String (60)HrmDescription | No | Yes | LeaveBuySellPolicy.Description |
Need help with LeaveBuySellPolicyEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.