Table
TrvLocations
Travel locations
Lists travel locations, identified by country/region, state or province, and location name. It links to the country/region and state tables. Per diem rates and mobile expense data refer to these locations.
- Table name
TrvLocations- Module
Expense- Table group
Reference- Table type
Regular- Data per company
Yes- Configuration key
TrvPerDiem- Primary index
Location- Replacement key
Location- Key fields
CountryRegionId, StateId, Location- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CountryRegionIdCountry/region of the location. It points to a country/region record. | StringLogisticsAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | TrvPerDiemLocationsEntityTrvExpTransMobileV2EntityTrvAllowanceRateEntityand 8 more |
StateIdState or province of the location. It points to a state record in the same country/region. | StringLogisticsAddressStateId | No | LogisticsAddressState.StateId | TrvPerDiemLocationsEntityTrvExpTransMobileV2EntityTrvAllowanceRateEntityand 8 more |
LocationName of the travel location. | String (128)TrvLocation | Yes | TrvExpMobileTrvLocationEntityTrvPerDiemLocationsEntityTrvExpTransMobileV2Entityand 9 more | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | TrvExpMobileTrvLocationEntity | |
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 | TrvExpMobileTrvLocationEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
LocationPrimary indexReplacement keyCountryRegionId,StateId,LocationUnique, alternate key.
Relations (2)
Each relation joins TrvLocations to another table on the fields shown.
Country→LogisticsAddressCountryRegionJoin on
CountryRegionId = LogisticsAddressCountryRegion.CountryRegionIdMany TrvLocations records → exactly one LogisticsAddressCountryRegion record
State→LogisticsAddressStateJoin on
CountryRegionId = LogisticsAddressState.CountryRegionId,StateId = LogisticsAddressState.StateIdMany TrvLocations records → zero or one LogisticsAddressState record
Get this data out
Tables are not exposed directly. These public entities read from TrvLocations; use one of them in Power BI, Power Platform or a data management project.
TrvExpMobileTrvLocationEntity· 3 fields from this tableTrvPerDiemLocationsEntity· 3 fields from this tableTrvExpTransMobileV2Entity· 3 fields from this tableTrvAllowanceRateEntity· 3 fields from this tableTrvCopilotAutomationExpenseEntity· 3 fields from this tableTrvExpMobileExpenseEntity· 3 fields from this tableTrvExpMobileExpenseLineAttachedToReportEntity· 3 fields from this tableTrvExpMobileLineApprovalEntity· 3 fields from this tableTrvExpTransMobileEntity· 3 fields from this tableTrvPerDiemsEntity· 3 fields from this tableTrvExpTransEntity· 3 fields from this tableTrvExpenseAgentExpenseEntity· 3 fields from this table
Need help with TrvLocations in a report, an integration or a migration? Talk to Dr Dynamics.