Table
TrvEnhancedTripLegDetail
Enhanced trip leg detail
Holds details of one leg of a trip, such as carrier, flight number, cities, fare and service class. It has no key fields. Each record points to an enhanced itinerary record.
- Table name
TrvEnhancedTripLegDetail- Module
Expense- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
Trv- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ArrivalDateDate of arrival. | DateTrvTransDate | No | TrvCreditCardTransactionEntity | |
CarrierCodeCode of the carrier for the leg. | StringTrvCarrierCode | No | TrvCreditCardTransactionEntity | |
CityOfOriginCity where the leg starts. | String (50)TrvCity | No | TrvCreditCardTransactionEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DepartureTaxSales tax amount charged on departure. | RealTaxAmountJournal | No | TrvCreditCardTransactionEntity | |
DestinationCityCity where the leg ends. | String (50)TrvCity | No | TrvCreditCardTransactionEntity | |
FareAmountFare for the leg, in the transaction currency. | RealAmountCur | No | TrvCreditCardTransactionEntity | |
FeeAmountFee for the leg, in the transaction currency. | RealAmountCur | No | TrvCreditCardTransactionEntity | |
FlightNumberFlight number of the leg. | StringTrvFlightNumber | No | TrvCreditCardTransactionEntity | |
ItineraryRecIdPoints to the enhanced itinerary record the leg belongs to. | Int64RefRecId | Yes | TrvEnhancedItineraryData.RecId | TrvCreditCardTransactionEntityTrvExpMobileExpenseEntity |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
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 | |
ServiceClassClass of service: economy, first or business. | EnumTrvAirlineServiceClassTrvAirlineServiceClassEnum (enum) | No | TrvCopilotAutomationExpenseEntityTrvCreditCardTransactionEntityTrvExpMobileExpenseEntityand 3 more | |
StopOverCityCity of a stopover during the leg. | String (50)TrvCity | No | TrvCreditCardTransactionEntity | |
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 | |
TaxAmountSales tax amount for the leg. | RealTaxAmountJournal | No | TrvCreditCardTransactionEntity | |
TravelDateDate of travel for the leg. | DateTrvTransDate | No | TrvCreditCardTransactionEntity | |
TripLegNumberNumber of the leg within the trip. | IntegerTrvTripLegNumber | No | TrvCreditCardTransactionEntity |
Indexes (1)
CreatedTransactionIdIdxNot unique.
Relations (1)
Each relation joins TrvEnhancedTripLegDetail to another table on the fields shown.
Itinerary→TrvEnhancedItineraryDataJoin on
ItineraryRecId = TrvEnhancedItineraryData.RecIdZero or one TrvEnhancedTripLegDetail record → exactly one TrvEnhancedItineraryData record
Get this data out
Tables are not exposed directly. These public entities read from TrvEnhancedTripLegDetail; use one of them in Power BI, Power Platform or a data management project.
TrvCopilotAutomationExpenseEntity· 1 field from this tableTrvCreditCardTransactionEntity· 14 fields from this tableTrvExpMobileExpenseEntity· 2 fields from this tableTrvExpMobileExpenseLineAttachedToReportEntity· 1 field from this tableTrvExpMobileLineApprovalEntity· 1 field from this tableTrvExpenseAgentExpenseEntity· 1 field from this table
Need help with TrvEnhancedTripLegDetail in a report, an integration or a migration? Talk to Dr Dynamics.