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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ArrivalDateDate of arrival.Date
TrvTransDate
NoTrvCreditCardTransactionEntity
CarrierCodeCode of the carrier for the leg.String
TrvCarrierCode
NoTrvCreditCardTransactionEntity
CityOfOriginCity where the leg starts.String (50)
TrvCity
NoTrvCreditCardTransactionEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
DepartureTaxSales tax amount charged on departure.Real
TaxAmountJournal
NoTrvCreditCardTransactionEntity
DestinationCityCity where the leg ends.String (50)
TrvCity
NoTrvCreditCardTransactionEntity
FareAmountFare for the leg, in the transaction currency.Real
AmountCur
NoTrvCreditCardTransactionEntity
FeeAmountFee for the leg, in the transaction currency.Real
AmountCur
NoTrvCreditCardTransactionEntity
FlightNumberFlight number of the leg.String
TrvFlightNumber
NoTrvCreditCardTransactionEntity
ItineraryRecIdPoints to the enhanced itinerary record the leg belongs to.Int64
RefRecId
YesTrvEnhancedItineraryData.RecIdTrvCreditCardTransactionEntityTrvExpMobileExpenseEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ServiceClassClass of service: economy, first or business.Enum
TrvAirlineServiceClass
TrvAirlineServiceClassEnum (enum)
NoTrvCopilotAutomationExpenseEntityTrvCreditCardTransactionEntityTrvExpMobileExpenseEntityand 3 more
StopOverCityCity of a stopover during the leg.String (50)
TrvCity
NoTrvCreditCardTransactionEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAmountSales tax amount for the leg.Real
TaxAmountJournal
NoTrvCreditCardTransactionEntity
TravelDateDate of travel for the leg.Date
TrvTransDate
NoTrvCreditCardTransactionEntity
TripLegNumberNumber of the leg within the trip.Integer
TrvTripLegNumber
NoTrvCreditCardTransactionEntity

Indexes (1)

Relations (1)

Each relation joins TrvEnhancedTripLegDetail to another table on the fields shown.

  • Itinerary → TrvEnhancedItineraryData

    Join on ItineraryRecId = TrvEnhancedItineraryData.RecId

    Zero 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.

Need help with TrvEnhancedTripLegDetail in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk