Data entity
TrvAllowanceRateEntity
Allowance rates for per diems. Each rate applies to a travel location, state, country or region, date range, minimum hours and an apply-to setting. It holds hotel, meal and other percentages and the percentage reductions for meals.
- Entity name
TrvAllowanceRateEntity- Public entity name
AllowanceRate- OData collection
AllowanceRates- Category
Reference- Module
Travel and expense- Read-only
No- Data management enabled
Yes- Configuration key
TrvPerDiem- Keys
Location, StateId, CountryRegionId, DateFrom, DateTo, MinimumHours, ApplyTo- Staging table
TrvAllowanceRateStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/AllowanceRates- Dataverse virtual table
mserp_trvallowancerateentity. 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
TrvAllowanceRate· rootPerDiemRecId(tableTrvPerDiems) · InnerJoin toTrvAllowanceRate· read-onlyTrvLocations· InnerJoin toPerDiemRecId
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ReductionInPercentageForBreakfastPercentage reduction when breakfast is provided. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.DeductBreakf | |
ReductionInPercentageForDinnerPercentage reduction when dinner is provided. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.DeductDinner | |
ReductionInPercentageForLunchPercentage reduction when lunch is provided. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.DeductLunch | |
PercentageReductionFor1MealPercentage reduction when one meal is provided. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.DeductOneMeal | |
PercentageReductionFor3OrMoreMealsPercentage reduction when three or more meals are provided. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.DeductThreeOrMoreMeals | |
PercentageReductionFor2MealsPercentage reduction when two meals are provided. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.DeductTwoMeals | |
MinimumHoursLowest number of hours for which the rate applies. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.FromQty | |
HotelPercentPercentage reduction for hotel. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.HotelReduction | |
MealPercentPercentage reduction for meals. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.MealReduction | |
OtherPercentPercentage reduction for other items. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.OtherReduction | |
ReferencePoints to the per diem record the rate belongs to. | Int64RefRecId | Yes | No (private) | TrvPerDiems.RecId | TrvAllowanceRate.PerDiemRecId |
MaximumHoursHighest number of hours for which the rate applies. | RealTrvRealBasePositive | No | Yes | TrvAllowanceRate.ToQty | |
ApplyToDay type the rate applies to: first day, last day, both or middle. | Enum
| No | Yes | TrvAllowanceRate.TrvFirstLastBoth | |
DateFromFirst date the rate applies. | DateTrvDateFrom | No | Yes | TrvPerDiems.DateFrom | |
DateToLast date the rate applies. | DateTrvDateTo | No | Yes | TrvPerDiems.DateTo | |
LocationName of the travel location. | String (128)TrvLocation | Yes | Yes | TrvLocations.Location | |
StateIdState or province of the location. It points to a state record in the same country/region. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.StateId | TrvLocations.StateId |
CountryRegionIdCountry/region of the location. It points to a country/region record. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | TrvLocations.CountryRegionId |
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.
Reference→TrvPerDiems.RecId(key of TrvPerDiems)Many TrvAllowanceRate records → exactly one TrvPerDiems record
TrvPerDiems details: see TrvPerDiemsEntity, TrvExpMobileTrvLocationEntity
StateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
StateId=LogisticsAddressState.StateId,CountryRegionId=LogisticsAddressState.CountryRegionIdMany TrvLocations records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
CountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many TrvLocations records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
Need help with TrvAllowanceRateEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.