Data entity
TrvExpenseAgentExpenseEntity
Expense line data for the expense agent. It is based on expense lines and joins the expense report, worker, location, subcategory, dimension and policy violation data. It also joins the enhanced car rental, hotel and itinerary data. Keyed by expense transaction number.
- Entity name
TrvExpenseAgentExpenseEntity- Public entity name
ExpenseAgentExpense- OData collection
ExpenseAgentExpenses- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
No- Configuration key
Trv- Keys
ExpTransNumber- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ExpenseAgentExpenses- Dataverse virtual table
mserp_trvexpenseagentexpenseentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Not enabled for import and export projects.
Data sources
TrvExpTrans· rootAddressCity(tableLogisticsAddressCity) · OuterJoin toTrvExpTrans· read-onlyCashAdvance(tableTrvCashAdvance) · OuterJoin toTrvExpTrans· read-onlyItemizedLine(tableTrvExpTrans) · OuterJoin toTrvExpTrans· read-onlyLegalEntity(tableCompanyInfo) · InnerJoin toTrvExpTrans· read-onlySubCategory(tableTrvExpSubCategory) · OuterJoin toTrvExpTrans· read-onlyTrvSharedSubCategory· OuterJoin toSubCategory· read-onlyTrvExpTableRecID(tableTrvExpTable) · OuterJoin toTrvExpTrans· read-onlyLegalEntity1(tableCompanyInfo) · OuterJoin toTrvExpTableRecID· read-onlyTrvHcmWorker(tableHcmWorker) · InnerJoin toTrvExpTrans· read-onlyTrvLocations· OuterJoin toTrvExpTrans· read-onlyDefaultDimensionDAVS(tableDimensionSetEntity) · OuterJoin toTrvExpTrans· read-onlySubmitterJustification(tableTrvPolicyViolationJustification) · OuterJoin toTrvExpTransTrvEnhancedCarRentalData· OuterJoin toTrvExpTransTrvEnhancedHotelData· OuterJoin toTrvExpTransTrvEnhancedItineraryData· OuterJoin toTrvExpTransTrvEnhancedTripLegDetail· OuterJoin toTrvExpTrans
Fields (158)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ExpTransNumberNumber that identifies the expense line. | String (20)TrvExpTransNumber | No | Yes | TrvExpTrans.ExpTransNumber | |
ExchangeCodeCurrency of the transaction amount. | String (3)TrvCurrencyCode | No | Yes | Currency.CurrencyCode | TrvExpTrans.ExchangeCode |
AccountingCurrencyOverBudgetAmountAmount over budget in company currency. | RealAmountMST | No | Yes | TrvExpTrans.AccountingCurrencyOverBudgetAmount | |
AccountingCurrencyReconciledAmountReconciled amount in company currency. | RealAmountMST | No | Yes | TrvExpTrans.AccountingCurrencyReconciledAmount | |
AdditionalInformationFree text with extra details about the expense. | String (1000)ItemFreeTxt | No | Yes | TrvExpTrans.AdditionalInformation | |
AddressCityRecord ID of the city linked to the expense. | Int64LogisticsAddressCityRecId | No | No (private) | LogisticsAddressCity.RecId | TrvExpTrans.AddressCity |
AddressZipCodeRecord ID of the ZIP/postal code linked to the expense. | Int64LogisticsAddressZipCodeRecId | No | Yes | LogisticsAddressZipCode.RecId | TrvExpTrans.AddressZipCode |
AmountCurrAmount of the expense in the transaction currency. | RealTrvTransactionCurrencyAmount | No | Yes | TrvExpTrans.AmountCurr | |
AmountMSTAmount of the expense in company currency. | RealAmountMST | No | Yes | TrvExpTrans.AmountMST | |
ApplyActionYes/No flag. Its exact meaning is not stated.low confidence | Enum
| No | Yes | TrvExpTrans.ApplyAction | |
ApprovalStatusApproval status of the line, such as draft, approved or rejected. | Enum
| No | Yes | TrvExpTrans.ApprovalStatus | |
ApprovedDateDate the line was approved. | DateTrvDateStd | No | Yes | TrvExpTrans.ApprovedDate | |
BillIssuedToWhether the hotel bill was issued to the company or the employee. | Enum
| No | Yes | TrvExpTrans.BillIssuedTo | |
BusinessPurposePurpose of the expense line. | String (100)TrvLinePurposeEDT | No | Yes | TrvExpTrans.BusinessPurpose | |
CashAdvanceRecIdRecord ID of the linked cash advance request. | Int64RefRecId | No | No (private) | TrvCashAdvance.RecId | TrvExpTrans.CashAdvanceRecId |
CityCity name for the expense. | String (60)AddressCity | No | Yes | TrvExpTrans.City | |
CorrectedTaxAmountActual sales tax amount for the line. | RealTaxAmountJournal | No | Yes | TrvExpTrans.CorrectedTaxAmount | |
CorrectedTaxAmountMSTSales tax amount in company currency. | RealTaxAmount | No | Yes | TrvExpTrans.CorrectedTaxAmountMST | |
CostOwnerWho owns the expense: company, employee or customer/others. | EnumTrvCostownerEDT
| No | Yes | TrvExpTrans.CostOwner | |
CostTypeExpense category of the line. | String (30)TrvCostTypeEDT | Yes | Yes | TrvCostType.CostType | TrvExpTrans.CostType |
CountryRegionCountry or region of the expense. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | TrvExpTrans.CountryRegion |
CreatingWorkerEmployee who created the line. | Int64TrvHcmWorkerRecId | No | Yes | HcmWorker.RecId | TrvExpTrans.CreatingWorker |
CreditCardTransactionCurrencyLocal currency of the credit card transaction. | String (3)TrvCurrencyCode | No | Yes | Currency.CurrencyCode | TrvExpTrans.CreditCardTransactionCurrency |
CreditCardTransactionCurrencyAmountAmount of the credit card transaction in local currency. | RealTrvTransactionCurrencyAmount | No | Yes | TrvExpTrans.CreditCardTransactionCurrencyAmount | |
DateFromStart date and time of the per diem period. | UtcDateTimeTrvDateTime | No | Yes | TrvExpTrans.DateFrom | |
DateToEnd date and time of the per diem period. | UtcDateTimeTrvDateTime | No | Yes | TrvExpTrans.DateTo | |
DeduktionMeal reduction amount. | RealTrvTransactionCurrencyAmount | No | Yes | TrvExpTrans.Deduktion | |
DeduktionBreakfestNumber of breakfasts counted for the meal reduction. | IntegerInteger | No | Yes | TrvExpTrans.DeduktionBreakfest | |
DeduktionDinnerNumber of dinners counted for the meal reduction. | IntegerInteger | No | Yes | TrvExpTrans.DeduktionDinner | |
DeduktionLunchNumber of lunches counted for the meal reduction. | IntegerInteger | No | Yes | TrvExpTrans.DeduktionLunch | |
DefaultDimensionDefault financial dimension values for the line. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | TrvExpTrans.DefaultDimension |
DescriptionDescription of the expense category. | String (60)TrvExpTransDescription | No | Yes | TrvExpTrans.Description | |
EntertainmentLocationPlace where the entertainment took place. | String (100)TrvEntertainmentLocation | No | Yes | TrvExpTrans.EntertainmentLocation | |
ExchangeRateExchange rate used for the expense. | RealExchRate | No | Yes | TrvExpTrans.ExchangeRate | |
ExpNumberNumber of the expense report that holds this line. | String (20)TrvExpNumber | No | Yes | TrvExpTrans.ExpNumber | |
ExpTypeType of expense, such as mileage, per diem, airline or entertainment. | EnumTrvExpTypeEDT
| Yes | Yes | TrvExpTrans.ExpType | |
IntercompanyBilledYes/No flag for intercompany billing. Its exact meaning is not stated.low confidence | Enum
| No | Yes | TrvExpTrans.IntercompanyBilled | |
InterCompanyCategoryProject category used for intercompany purposes. | String (30)ProjCategoryId | No | Yes | ProjCategory.CategoryId | TrvExpTrans.InterCompanyCategory |
InterCompanyLELegal entity involved in the intercompany expense. | StringTrvLegalEntity | No | Yes | CompanyInfo.DataArea | TrvExpTrans.InterCompanyLE |
IntercompanySalesCurrencyCurrency of the intercompany sales price. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | TrvExpTrans.IntercompanySalesCurrency |
IntercompanySalesPriceIntercompany sales price of the expense. | RealProjSalesPriceCost | No | Yes | TrvExpTrans.IntercompanySalesPrice | |
IntercompanyTransferCurrencyCurrency of the intercompany cost price. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | TrvExpTrans.IntercompanyTransferCurrency |
IntercompanyTransferPriceIntercompany cost price of the expense. | RealProjCostPriceCost | No | Yes | TrvExpTrans.IntercompanyTransferPrice | |
InvoiceAmtAmount on the invoice. | RealAmountCur | No | Yes | TrvExpTrans.InvoiceAmt | |
IsBudgetCheckPendingYes/No flag showing a budget check is pending. | Enum
| No | Yes | TrvExpTrans.IsBudgetCheckPending | |
IsPreAuthorizedYes/No flag showing the expense is pre-authorized. | Enum
| No | Yes | TrvExpTrans.IsPreAuthorized | |
IsSplitYes/No flag showing the line is split to a personal part. | EnumTrvIsSplit
| No | Yes | TrvExpTrans.IsSplit | |
KMOwnCarDistance travelled in the employee's own car. | RealTrvMileage | No | Yes | TrvExpTrans.KMOwnCar | |
KMPriceRate paid per distance unit for mileage. | RealTrvCostRate | No | Yes | TrvExpTrans.KMPrice | |
LegalEntityLegal entity the line belongs to. | Int64LegalEntity | Yes | No (private) | CompanyInfo.RecId | TrvExpTrans.LegalEntity |
LineNumberNumber of the line in the report. | RealTrvLineNumber | No | Yes | TrvExpTrans.LineNumber | |
LineTypeKind of line: default, itemized header or itemized line. | Enum
| No | Yes | TrvExpTrans.LineType | |
MappedToRequisitionLineRecord ID of the linked travel requisition line. | Int64RefRecId | No | No (private) | TrvRequisitionLine.RecId | TrvExpTrans.MappedToRequisitionLine |
MerchantIdMerchant for the expense. | String (255)TrvExpMerchantId | No | Yes | TrvExpMerchant.MerchantId | TrvExpTrans.MerchantId |
MileageFromAddressStart address of the mileage trip. | String (100)TrvMileageAddress | No | Yes | TrvExpTrans.MileageFromAddress | |
MileageToAddressEnd address of the mileage trip. | String (100)TrvMileageAddress | No | Yes | TrvExpTrans.MileageToAddress | |
NetTransactionAmountNet amount of the transaction. | RealAmountCur | No | Yes | TrvExpTrans.NetTransactionAmount | |
NotApprovedDateDate the line was rejected. | DateTrvDateStd | No | Yes | TrvExpTrans.NotApprovedDate | |
NumberOfPassengersNumber of passengers. | IntegerTrvNumberOfPassengers | No | Yes | TrvExpTrans.NumberOfPassengers | |
OriginalReceiptsRecvdYes/No flag showing original receipts were received. | Enum
| No | Yes | TrvExpTrans.OriginalReceiptsRecvd | |
OriginalSourceDocumentLineRecord ID of the original source document line. | Int64RefRecId | No | No (private) | SourceDocumentLine.RecId | TrvExpTrans.OriginalSourceDocumentLine |
ParentRecIdRecord ID of the itemized header line that this line belongs to. | Int64RefRecId | No | No (private) | TrvExpTrans.RecId | TrvExpTrans.ParentRecId |
PayMethodPayment method used for the expense. | StringTrvPayMethodEDT | Yes | Yes | TrvPayMethod.PayMethodTrvValidatePayment.PayMethod | TrvExpTrans.PayMethod |
PBS_StatementYes/No flag showing the line came from an imported credit card statement. | EnumNoYesId
| No | Yes | TrvExpTrans.PBS_Statement | |
PBSRecIdRecord ID of the linked credit card record. | Int64RefRecId | No | No (private) | TrvPBSMaindata.RecId | TrvExpTrans.PBSRecId |
PostingErrorsText with posting errors for the line. | String (100)TrvPostingErrors | No | Yes | TrvExpTrans.PostingErrors | |
ProjActivityNumberProject activity linked to the expense. | String (50)ProjActivityNumber | No | Yes | smmActivities.ActivityNumber | TrvExpTrans.ProjActivityNumber |
ProjIdProject the expense is charged to. | String (20)ProjId | No | Yes | ProjTable.ProjId | TrvExpTrans.ProjId |
ProjPolicyStatusResult of the project expense policy check, such as passed, warning or failed. | Enum
| No | Yes | TrvExpTrans.ProjPolicyStatus | |
ProjPolicyTextMessage text about the policy result. | String (-1)SysInfoLogStr | No | Yes | TrvExpTrans.ProjPolicyText | |
ProjStatusIdProject line property, shown as billable. | StringProjLinePropertyId | No | Yes | ProjLineProperty.LinePropertyId | TrvExpTrans.ProjStatusId |
ReasonFree text with a reason for the expense. | String (-1)Notes | No | Yes | TrvExpTrans.Reason | |
ReceiptNumberNumber printed on the receipt. | String (60)TrvReceiptNumber | No | Yes | TrvExpTrans.ReceiptNumber | |
ReceiptRequiredYes/No flag showing a receipt is required. | Enum
| No | Yes | TrvExpTrans.ReceiptRequired | |
ReceiptsAttachedYes/No flag showing receipts are attached. | Enum
| No | Yes | TrvExpTrans.ReceiptsAttached | |
ReferenceDataAreaIdCompany the line belongs to. | StringDataAreaId | No | Yes | CompanyInfo.DataArea | TrvExpTrans.ReferenceDataAreaId |
ReimburseAmtAmount to reimburse. | RealAmountCur | No | Yes | TrvExpTrans.ReimburseAmt | |
SourceDocumentLineRecord ID of the linked source document line. | Int64RefRecId | No | No (private) | SourceDocumentLine.RecId | TrvExpTrans.SourceDocumentLine |
SubCategoryRecIdRecord ID of the expense subcategory. | Int64TrvExpSubCategoryEDT | No | Yes | TrvExpSubCategory.RecId | TrvExpTrans.SubCategoryRecId |
TaxGroupSales tax group for the line. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | TrvExpTrans.TaxGroup |
TaxIncludedYes/No flag showing the amount includes tax. | Enum
| No | Yes | TrvExpTrans.TaxIncluded | |
TaxItemGroupItem sales tax group for the line. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | TrvExpTrans.TaxItemGroup |
TicketClassClass of the ticket, such as for a flight. | String (60)Description | No | Yes | TrvExpTrans.TicketClass | |
TicketNumberNumber of the ticket. | String (60)Description | No | Yes | TrvExpTrans.TicketNumber | |
TicketUsedYes/No flag showing the ticket was used. | Enum
| No | Yes | TrvExpTrans.TicketUsed | |
TransactionTextInternal note about the transaction. | String (60)TransTxt | No | Yes | TrvExpTrans.TransactionText | |
TransDateDate of the transaction. | DateTrvDateStd | Yes | Yes | TrvExpTrans.TransDate | |
TransRowNumRow number of the transaction.low confidence | IntegerInteger | No | Yes | TrvExpTrans.TransRowNum | |
TrvExpTableRecord ID of the expense report that holds the line. | Int64RefRecId | No | No (private) | TrvExpTable.RecId | TrvExpTrans.TrvExpTable |
TrvLocationsRecord ID of the travel location. | Int64RefRecId | No | Yes | TrvLocations.RecId | TrvExpTrans.TrvLocations |
VehicleTypeType of vehicle used for mileage. | String (30)TrvVehicleType | No | Yes | TrvExpTrans.VehicleType | |
VoucherVoucher number linked to the line. | String (20)Voucher | No | Yes | TrvExpTrans.Voucher | |
Mobile_StatementYes/No flag. It probably shows the line came from the mobile app.low confidence | EnumNoYesId
| No | Yes | TrvExpTrans.Mobile_Statement | |
ProjTransIdProject transaction ID linked to the line. | String (20)ProjCostTransId | No | Yes | TrvExpTrans.ProjTransId | |
AddressStateState or province of the expense. | StringLogisticsAddressStateId | No | Yes | TrvExpTrans.AddressState | |
LineLevelPostingYes/No flag for posting at expense line level. | EnumNoYesId
| No | Yes | TrvExpTrans.LineLevelPosting | |
PostAccountOffset account for the expense line. | String (20)LedgerJournalAC | No | Yes | TrvExpTrans.PostAccount | |
PostAccountTypeType of the offset account, such as ledger, vendor or bank. | Enum
| No | Yes | TrvExpTrans.PostAccountType | |
SplitLineTypeKind of split line: default, split header or split line. | Enum
| No | Yes | TrvExpTrans.SplitLineType | |
PerdiemTimezoneTime zone used for the per diem period. | Enum
| No | Yes | TrvExpTrans.PerdiemTimezone | |
VatDueDate_WDate of the VAT register. | DateVatDueDate_W | No | Yes | TrvExpTrans.VatDueDate_W | |
PerDiemHotelAllowanceHotel allowance amount for the per diem. | RealTrvPerDiemAmountCur | No | Yes | TrvExpTrans.PerDiemHotelAllowance | |
ExpenseItemizationGroupIdIdentifier shared by itemized lines in the same subcategory. | String (20)ExpenseItemizationGroupId | No | Yes | TrvExpTrans.ExpenseItemizationGroupId | |
EntryPointWhere the expense was entered, such as the expense workspace. | EnumTrvExpEntryPointEDT
| No | Yes | TrvExpTrans.EntryPoint | |
AddressCity_NameName of the city. | String (60)LogisticsAddressCityName | Yes | Yes | LogisticsAddressCity.Name | |
CashAdvance_CashAdvanceNumberUnique number of the cash advance request. | String (20)TrvCashAdvanceNumber | Yes | Yes | TrvCashAdvance.CashAdvanceNumber | |
ItemizedLine_ExpTransNumberNumber that identifies the expense line. | String (20)TrvExpTransNumber | No | Yes | TrvExpTrans.ExpTransNumber | |
PartyIDUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | Yes | DirPartyTable.PartyNumber | |
CompanyCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
SubCategory_CostTypeExpense category the subcategory belongs to. | String (30)TrvCostTypeEDT | No | Yes | TrvCostType.CostType | TrvExpSubCategory.CostType |
SubCategory_TrvSharedSubCategoryRecord ID of the shared subcategory that gives this record its name. | Int64RefRecId | Yes | No (private) | TrvSharedSubCategory.RecId | TrvExpSubCategory.TrvSharedSubCategory |
TrvSharedSubCategory_NameName of the expense subcategory. | String (40)TrvExpSubCategoryName | No | Yes | TrvSharedSubCategory.Name | |
TrvExpTableRecID_ExpNumberNumber that identifies the expense report. | String (20)TrvExpNumber | Yes | Yes | TrvExpTable.ExpNumber | |
TrvExpTableRecID_LegalEntityLegal entity the report belongs to. | Int64LegalEntity | No | No (private) | CompanyInfo.RecId | TrvExpTable.LegalEntity |
LegalEntity1_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
LegalEntity1_DataAreaCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
TrvHcmWorker_PersonPoints to the person record that holds the worker's name. | Int64DirPartyRecId | Yes | No (private) | DirPerson.RecId | HcmWorker.Person |
TrvHcmWorker_PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
TrvLocations_LocationName of the travel location. | String (128)TrvLocation | Yes | Yes | TrvLocations.Location | |
TrvLocations_CountryRegionIdCountry/region of the location. It points to a country/region record. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | TrvLocations.CountryRegionId |
TrvLocations_StateIdState or province of the location. It points to a state record in the same country/region. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.StateId | TrvLocations.StateId |
DefaultDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
ProjectNameName of the project linked to the expense line. | String (100) | No | Yes | virtual | |
PolicyViolationsLevelNumber showing the level of policy violations on the expense line.low confidence | Int64 | No | Yes | virtual | |
PolicyViolationCountNumber of policy violations on the expense line. | Int64 | No | Yes | virtual | |
PolicyViolationMessageText of the policy violation message for the expense line. | String (400) | No | Yes | virtual | |
SubmitterJustificationText the employee gives to explain the violation. | String (1000)TrvSubmitterJustification | No | Yes | TrvPolicyViolationJustification.Justification | |
JustifyingWorkerEmployee who gave the justification. It points to a worker record. | Int64TrvHcmWorkerRecId | Yes | Yes | HcmWorker.RecId | TrvPolicyViolationJustification.JustifyingWorker |
IsSubmitterJustificationRequiredShows whether the submitter must give a justification, as a whole number.low confidence | Integer | No | Yes | virtual | |
AttachedReceiptIdID of the receipt attached to the expense line. | String (30) | No | Yes | virtual | |
DetachWhole-number value used to detach a receipt from the line.low confidence | Integer | No | Yes | virtual | |
CarRentalCheckOutDateDate the car was picked up. | DateTrvTransDate | No | Yes | TrvEnhancedCarRentalData.CarRentalCheckOutDate | |
CheckOutLocationPlace where the car was picked up. | String (50)TrvRentalLocation | No | Yes | TrvEnhancedCarRentalData.CheckOutLocation | |
ReturnDateDate the car was returned. | DateTrvTransDate | No | Yes | TrvEnhancedCarRentalData.ReturnDate | |
VehicleClassClass of the vehicle: compact, intermediate or full. | EnumTrvCarRentalVehicleClass
| No | Yes | TrvEnhancedCarRentalData.VehicleClass | |
CheckInDateDate the guest checked in. | DateTrvTransDate | No | Yes | TrvEnhancedHotelData.CheckInDate | |
CheckOutDateDate the guest checked out. | DateTrvTransDate | No | Yes | TrvEnhancedHotelData.CheckOutDate | |
TotalRoomNightsNumber of nights stayed. | IntegerTrvNumberOfNights | No | Yes | TrvEnhancedHotelData.TotalRoomNights | |
TotalRoomRentTotal rent for the room. | RealAmountCur | No | Yes | TrvEnhancedHotelData.TotalRoomRent | |
TotalTaxAmountTotal tax amount on the stay. | RealTaxAmountJournal | No | Yes | TrvEnhancedHotelData.TotalTaxAmount | |
DomesticIndicatorYes/No marker for a domestic flight. | Enum
| No | Yes | TrvEnhancedItineraryData.DomesticIndicator | |
TicketIssueDateDate the ticket was issued. | DateTrvTransDate | No | Yes | TrvEnhancedItineraryData.TicketIssueDate | |
TravelAgencyInvoiceNumberInvoice number from the travel agency. | String (25)TrvTravelAgencyInvoiceNumber | No | Yes | TrvEnhancedItineraryData.TravelAgencyInvoiceNumber | |
TravelAgencyNameName of the travel agency. | String (50)TrvName | No | Yes | TrvEnhancedItineraryData.TravelAgencyName | |
ServiceClassClass of service: economy, first or business. | EnumTrvAirlineServiceClass
| No | Yes | TrvEnhancedTripLegDetail.ServiceClass | |
PolicyViolationErrorMessageError message text about a policy violation. | String | No | Yes | virtual | |
DocumentCreatedDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | TrvExpTrans.CreatedDateTime | |
AmountCurrencyText value for the currency of the amount.low confidence | String | No | Yes | virtual | |
MealAndIncidentalsAmount for meals and incidentals.low confidence | Real | No | Yes | virtual | |
DeduktionMSTDeduction amount. Purpose is not clear from the name alone.low confidence | Real | No | Yes | virtual | |
ExpenseRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | TrvExpTrans.RecId | |
IsCreditcardTransactionInLocalCurrencyYes or no value that shows whether the credit card transaction is in local currency. | EnumNoYesId
| No | Yes | virtual | |
IsCreditCardTransactionYes or no value that shows whether the expense line is a credit card transaction. | EnumNoYesId
| No | Yes | virtual | |
TrvExpGeneratedBySource that created the line: a user, the Expense Agent or a mobile user. | Enum
| No | Yes | TrvExpTrans.TrvExpGeneratedBy | |
UnattachedReceiptRecIdsText list of system record IDs of receipts that are not yet attached.low confidence | String (1000) | No | Yes | virtual | |
DetachUnattachedRecIdWhole-number value that holds the system record ID of an unattached receipt to detach.low confidence | Integer | No | Yes | virtual | |
ExpenseAgentMetadataFree text with extra data about the expense.low confidence | String (1000)ItemFreeTxt | No | Yes | TrvExpTrans.TrvExpenseMetadata | |
IsCategoryChangeYes or no value that shows whether the expense category has changed. | EnumNoYesId
| No | No (private) | virtual |
Foreign keys (38)
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.
ExchangeCode→Currency.CurrencyCode(key of Currency)Many TrvExpTrans records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
AddressCity→LogisticsAddressCity.RecId(key of LogisticsAddressCity)Many TrvExpTrans records → zero or one LogisticsAddressCity record
LogisticsAddressCity details: see TrvExpMobileAddressCityEntity, AccountantEntity, LogisticsAddressCityEntity
AddressZipCode→LogisticsAddressZipCode.RecId(key of LogisticsAddressZipCode)Many TrvExpTrans records → zero or one LogisticsAddressZipCode record
LogisticsAddressZipCode details: see TrvAddressZipcodeEntity, LogisticsAddressPostalCodeEntity, LogisticsAddressPostalCodeV2Entity
CashAdvanceRecId→TrvCashAdvance.RecId(key of TrvCashAdvance)Many TrvExpTrans records → zero or one TrvCashAdvance record
TrvCashAdvance details: see TrvCashAdvanceEntity, TrvCopilotAutomationExpenseEntity, TrvExpMobileExpenseEntity
CostType→TrvCostType.CostType(key of TrvCostType)Join on all of:
CostType=TrvCostType.CostType,ReferenceDataAreaId=TrvCostType.dataAreaIdMany TrvExpTrans records → exactly one TrvCostType record
TrvCostType details: see TrvExpenseCategoryEntity, ProjExpenseCategoryExportEntity
CountryRegion→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many TrvExpTrans records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
CreatingWorker→HcmWorker.RecId(key of HcmWorker)Many TrvExpTrans records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
CreditCardTransactionCurrency→Currency.CurrencyCode(key of Currency)Many TrvExpTrans records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DefaultDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many TrvExpTrans records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
InterCompanyCategory→ProjCategory.CategoryId(key of ProjCategory)Join on all of:
InterCompanyCategory=ProjCategory.CategoryId,ReferenceDataAreaId=ProjCategory.dataAreaIdMany TrvExpTrans records → zero or one ProjCategory record
ProjCategory details: see ProjectCategoryEntity, ProjControlCostGroupCategoriesEntity, ResResourceSetupDataEntity
InterCompanyLE→CompanyInfo.DataArea(key of CompanyInfo)Many TrvExpTrans records → zero or one CompanyInfo record
CompanyInfo details: see OMLegalEntity, TrvExpMobileExpenseLineAttachedToReportEntity, TrvExpMobileLineApprovalEntity
IntercompanySalesCurrency→Currency.CurrencyCode(key of Currency)Many TrvExpTrans records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
IntercompanyTransferCurrency→Currency.CurrencyCode(key of Currency)Many TrvExpTrans records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
LegalEntity→CompanyInfo.RecId(key of CompanyInfo)Many TrvExpTrans records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
MappedToRequisitionLine→TrvRequisitionLine.RecId(key of TrvRequisitionLine)Many TrvExpTrans records → zero or one TrvRequisitionLine record
TrvRequisitionLine details: see TrvRequisitionLineBiEntity
MerchantId→TrvExpMerchant.MerchantId(key of TrvExpMerchant)Join on all of:
MerchantId=TrvExpMerchant.MerchantId,ReferenceDataAreaId=TrvExpMerchant.dataAreaIdMany TrvExpTrans records → zero or one TrvExpMerchant record
TrvExpMerchant details: see TrvExpenseMerchantEntity
OriginalSourceDocumentLine→SourceDocumentLine.RecId(key of SourceDocumentLine)Many TrvExpTrans records → zero or one SourceDocumentLine record
SourceDocumentLine details: see SourceDocumentLineBiEntity, SourceDocumentLineCDREntity
ParentRecId→TrvExpTrans.RecId(key of TrvExpTrans)Many TrvExpTrans records → zero or one TrvExpTrans record
TrvExpTrans details: see TrvCopilotAutomationExpenseEntity, TrvExpMobileExpenseEntity, TrvExpMobileExpenseLineAttachedToReportEntity
PayMethod→TrvPayMethod.PayMethod(key of TrvPayMethod)Join on all of:
PayMethod=TrvPayMethod.PayMethod,ReferenceDataAreaId=TrvPayMethod.dataAreaIdMany TrvExpTrans records → exactly one TrvPayMethod record
TrvPayMethod details: see TrvPayMethodEntity
PayMethod→TrvValidatePayment.PayMethod(key of TrvValidatePayment)Join on all of:
PayMethod=TrvValidatePayment.PayMethod,ReferenceDataAreaId=TrvValidatePayment.dataAreaId,CostType=TrvValidatePayment.CostTypeMany TrvExpTrans records → zero or one TrvValidatePayment record
TrvValidatePayment details: see TrvValidatePaymentEntity
PBSRecId→TrvPBSMaindata.RecId(key of TrvPBSMaindata)Many TrvExpTrans records → zero or one TrvPBSMaindata record
TrvPBSMaindata details: see TrvCreditCardTransactionEntity
ProjActivityNumber→smmActivities.ActivityNumber(key of smmActivities)Join on all of:
ProjActivityNumber=smmActivities.ActivityNumber,ReferenceDataAreaId=smmActivities.dataAreaIdMany TrvExpTrans records → zero or one smmActivities record
smmActivities details: see DualWriteSmmActivitiesEntity, DualWriteCustomerActivitiesEntity, DualWriteCustomerActivitiesV2Entity
ProjId→ProjTable.ProjId(key of ProjTable)Join on all of:
ProjId=ProjTable.ProjId,ReferenceDataAreaId=ProjTable.dataAreaIdMany TrvExpTrans records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjStatusId→ProjLineProperty.LinePropertyId(key of ProjLineProperty)Join on all of:
ProjStatusId=ProjLineProperty.LinePropertyId,ReferenceDataAreaId=ProjLineProperty.dataAreaIdMany TrvExpTrans records → zero or one ProjLineProperty record
ProjLineProperty details: see ProjProjectLinePropertyEntity, TrvExpMobileProjLinePropertyEntity, ProjBillingTypeLinePropertyEntity
ReferenceDataAreaId→CompanyInfo.DataArea(key of CompanyInfo)Many TrvExpTrans records → zero or one CompanyInfo record
CompanyInfo details: see OMLegalEntity, TrvExpMobileExpenseLineAttachedToReportEntity, TrvExpMobileLineApprovalEntity
SourceDocumentLine→SourceDocumentLine.RecId(key of SourceDocumentLine)Zero or one TrvExpTrans record → zero or one SourceDocumentLine record
SourceDocumentLine details: see SourceDocumentLineBiEntity, SourceDocumentLineCDREntity
SubCategoryRecId→TrvExpSubCategory.RecId(key of TrvExpSubCategory)Many TrvExpTrans records → zero or one TrvExpSubCategory record
TrvExpSubCategory details: see TrvExpenseSubCategoryEntity, TrvCopilotAutomationExpenseEntity, TrvExpMobileExpenseEntity
TaxGroup→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Join on all of:
TaxGroup=TaxGroupHeading.TaxGroup,ReferenceDataAreaId=TaxGroupHeading.dataAreaIdMany TrvExpTrans records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
TaxItemGroup→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Join on all of:
TaxItemGroup=TaxItemGroupHeading.TaxItemGroup,ReferenceDataAreaId=TaxItemGroupHeading.dataAreaIdMany TrvExpTrans records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
TrvExpTable→TrvExpTable.RecId(key of TrvExpTable)Many TrvExpTrans records → zero or one TrvExpTable record
TrvExpTable details: see TrvExpMobileReportApprovalEntity, TrvCopilotAutomationReportEntity, TrvExpMobileReportEntity
TrvLocations→TrvLocations.RecId(key of TrvLocations)Many TrvExpTrans records → zero or one TrvLocations record
TrvLocations details: see TrvExpMobileTrvLocationEntity, TrvAllowanceRateEntity, TrvCopilotAutomationExpenseEntity
SubCategory_CostType→TrvCostType.CostType(key of TrvCostType)Many TrvExpSubCategory records → exactly one TrvCostType record
TrvCostType details: see TrvExpenseCategoryEntity, ProjExpenseCategoryExportEntity
TrvExpTableRecID_LegalEntity→CompanyInfo.RecId(key of CompanyInfo)Many TrvExpTable records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
TrvHcmWorker_Person→DirPerson.RecId(key of DirPerson)Zero or one HcmWorker record → exactly one DirPerson record
DirPerson details: see CustCustomerBaseEntity, CustFoundationEntity, DirPartyCDSEntity
TrvLocations_CountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many TrvLocations records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
TrvLocations_StateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
TrvLocations_StateId=LogisticsAddressState.StateId,TrvLocations_CountryRegionId=LogisticsAddressState.CountryRegionIdMany TrvLocations records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
JustifyingWorker→HcmWorker.RecId(key of HcmWorker)Many TrvPolicyViolationJustification records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with TrvExpenseAgentExpenseEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.