Data entity
LeaveBuySellPolicyBuyTierEntity
Holds the buy tiers of a buy and sell leave policy. Each tier is identified by policy, leave type and months of service. It holds the rate, maximum amount, full time equivalency and earning code. It links to the policy, leave type and earning code.
- Entity name
LeaveBuySellPolicyBuyTierEntity- Public entity name
LeaveBuySellPolicyBuyTier- OData collection
LeaveBuySellPolicyBuyTiers- Category
Not set- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
PolicyId, LeaveTypeId, MonthsOfService- Staging table
LeaveBuySellPolicyBuyTierStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveBuySellPolicyBuyTiers- Dataverse virtual table
mserp_leavebuysellpolicybuytierentity. 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
LeaveBuySellPolicyBuyTier· rootLeaveType· InnerJoin toLeaveBuySellPolicyBuyTier· read-onlyPayrollEarningCode· OuterJoin toLeaveBuySellPolicyBuyTier· read-onlyLeaveBuySellPolicy· InnerJoin toLeaveBuySellPolicyBuyTier· read-only
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
PolicyPoints to the buy and sell leave policy that this tier belongs to. | Int64LeaveBuySellPolicyRecId | Yes | No (private) | LeaveBuySellPolicy.RecId | LeaveBuySellPolicyBuyTier.Policy |
LeaveTypePoints to the leave type that the tier applies to. | Int64LeaveTypeRecId | Yes | No (private) | LeaveType.RecId | LeaveBuySellPolicyBuyTier.LeaveType |
RateRate used when a worker buys this type of leave. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicyBuyTier.Rate | |
MaximumAmountUpper limit on the amount of leave that can be bought under this tier. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicyBuyTier.MaximumAmount | |
UseFullTimeEquivalencyYes/No flag. When Yes, the worker's full-time equivalency from their position is used to check the amount bought. | Enum
| No | Yes | LeaveBuySellPolicyBuyTier.UseFullTimeEquivalency | |
MonthsOfServiceMonths of service a worker needs before this buy tier applies. It is also part of the tier key. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicyBuyTier.MonthsOfService | |
EarningCodePoints to the payroll earning code linked to this tier. | Int64PayrollEarningCodeRecId | No | No (private) | PayrollEarningCode.RecId | LeaveBuySellPolicyBuyTier.EarningCode |
LeaveTypeIdShort name that identifies the leave type. | String (30)LeaveTypeId | Yes | Yes | LeaveType.Type | |
EarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | No | Yes | PayrollEarningCode.EarningCode | |
PolicyIdName of the buy and sell leave policy. | String (30)LeaveBuySellPolicyName | Yes | Yes | LeaveBuySellPolicy.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.
Policy→LeaveBuySellPolicy.RecId(key of LeaveBuySellPolicy)Many LeaveBuySellPolicyBuyTier records → exactly one LeaveBuySellPolicy record
LeaveBuySellPolicy details: see LeaveBuySellPolicyEntity, LeaveBuySellPolicySellTierEntity, LeaveBuySellRequestEntity
LeaveType→LeaveType.RecId(key of LeaveType)Many LeaveBuySellPolicyBuyTier records → exactly one LeaveType record
LeaveType details: see LeaveTypeEntity, EssLeaveBalanceEntity, LeaveBalanceActiveEntity
EarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many LeaveBuySellPolicyBuyTier records → zero or one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, PayrollEarningCodeEntity, BenefitDeductionEntity
Need help with LeaveBuySellPolicyBuyTierEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.