Data entity
LeaveBuySellPolicySellTierEntity
Holds the sell 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
LeaveBuySellPolicySellTierEntity- Public entity name
LeaveBuySellPolicySellTier- OData collection
LeaveBuySellPolicySellTiers- 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
LeaveBuySellPolicySellTierStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LeaveBuySellPolicySellTiers- Dataverse virtual table
mserp_leavebuysellpolicyselltierentity. 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
LeaveBuySellPolicySellTier· rootLeaveType· InnerJoin toLeaveBuySellPolicySellTier· read-onlyPayrollEarningCode· OuterJoin toLeaveBuySellPolicySellTier· read-onlyLeaveBuySellPolicy· InnerJoin toLeaveBuySellPolicySellTier· 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 | LeaveBuySellPolicySellTier.Policy |
LeaveTypePoints to the leave type that the tier applies to. | Int64LeaveTypeRecId | Yes | No (private) | LeaveType.RecId | LeaveBuySellPolicySellTier.LeaveType |
RateRate used when a worker sells this type of leave. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicySellTier.Rate | |
MaximumAmountUpper limit on the amount of leave that can be sold under this tier. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicySellTier.MaximumAmount | |
UseFullTimeEquivalencyYes/No flag. When Yes, the worker's full-time equivalency from their position is used to check the amount sold. | Enum
| No | Yes | LeaveBuySellPolicySellTier.UseFullTimeEquivalency | |
MonthsOfServiceMonths of service a worker needs before this sell tier applies. It is also part of the tier key. | RealLeaveAmountUnsigned | No | Yes | LeaveBuySellPolicySellTier.MonthsOfService | |
EarningCodePoints to the payroll earning code linked to this tier. | Int64PayrollEarningCodeRecId | No | No (private) | PayrollEarningCode.RecId | LeaveBuySellPolicySellTier.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 LeaveBuySellPolicySellTier records → exactly one LeaveBuySellPolicy record
LeaveBuySellPolicy details: see LeaveBuySellPolicyEntity, LeaveBuySellPolicyBuyTierEntity, LeaveBuySellRequestEntity
LeaveType→LeaveType.RecId(key of LeaveType)Many LeaveBuySellPolicySellTier records → exactly one LeaveType record
LeaveType details: see LeaveTypeEntity, EssLeaveBalanceEntity, LeaveBalanceActiveEntity
EarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many LeaveBuySellPolicySellTier records → zero or one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, PayrollEarningCodeEntity, BenefitDeductionEntity
Need help with LeaveBuySellPolicySellTierEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.