Table
TrvPerDiems
Per diems
Holds per diem rates for a travel location over a date range. Each record gives hotel, meal and other allowances with a currency, plus the percentage reductions for provided meals. The key is the location with the start and end dates.
- Table name
TrvPerDiems- Module
Expense- Table group
Reference- Table type
Regular- Data per company
Yes- Configuration key
TrvPerDiem- Primary index
RecId- Replacement key
TrvLocationDates- Key fields
TrvLocations, DateFrom, DateTo- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TrvLocationsTravel location the rate applies to. It points to a travel location record. | Int64RefRecId | Yes | TrvLocations.RecId | None |
DateFromFirst date the rate applies. | DateTrvDateFrom | No | TrvPerDiemsEntityTrvAllowanceRateEntity | |
DateToLast date the rate applies. | DateTrvDateTo | No | TrvPerDiemsEntityTrvAllowanceRateEntity | |
CurrencyCurrency of the allowance amounts. It points to a currency. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | TrvPerDiemsEntityTrvExpMobileTrvLocationEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeductBreakfPercentage taken off when breakfast is provided. | RealTrvRealBasePositive | No | TrvPerDiemsEntity | |
DeductDinnerPercentage taken off when dinner is provided. | RealTrvRealBasePositive | No | TrvPerDiemsEntity | |
DeductLunchPercentage taken off when lunch is provided. | RealTrvRealBasePositive | No | TrvPerDiemsEntity | |
DeductOneMealPercentage taken off when one meal is provided. | RealTrvRealBasePositive | No | TrvPerDiemsEntity | |
DeductThreeOrMoreMealsPercentage taken off when three or more meals are provided. | RealTrvRealBasePositive | No | TrvPerDiemsEntity | |
DeductTwoMealsPercentage taken off when two meals are provided. | RealTrvRealBasePositive | No | TrvPerDiemsEntity | |
HotelAllowanceAllowance amount for hotel. | RealTrvPerDiemAmountCur | No | TrvPerDiemsEntity | |
LocationName of the travel location. | String (128)TrvLocation | No | None | |
MealAllowanceAllowance amount for meals. | RealTrvPerDiemAmountCur | No | TrvPerDiemsEntity | |
OtherAllowanceAllowance amount for other costs. | RealTrvPerDiemAmountCur | No | TrvPerDiemsEntity | |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
TrvLocationDatesReplacement keyTrvLocations,DateFrom,DateToUnique, alternate key.
Relations (2)
Each relation joins TrvPerDiems to another table on the fields shown.
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany TrvPerDiems records → exactly one Currency record
TrvLocations→TrvLocationsJoin on
TrvLocations = TrvLocations.RecIdMany TrvPerDiems records → exactly one TrvLocations record
Get this data out
Tables are not exposed directly. These public entities read from TrvPerDiems; use one of them in Power BI, Power Platform or a data management project.
TrvPerDiemsEntity· 12 fields from this tableTrvAllowanceRateEntity· 2 fields from this tableTrvExpMobileTrvLocationEntity· 1 field from this table
Need help with TrvPerDiems in a report, an integration or a migration? Talk to Dr Dynamics.