Data entity

TrvExpenseCategoryEntity

Expense categories, keyed by the category name. Each row has a description, expense type, default payment method, tax groups and statistics group. It also has flags such as inactive, import only and itemization mandatory. It links to subcategories and a dimension combination.

Entity name
TrvExpenseCategoryEntity
Public entity name
ExpenseCategory
OData collection
ExpenseCategories
Category
Not set
Module
Travel and expense
Read-only
No
Data management enabled
Yes
Configuration key
Trv
Keys
ExpenseCategory
Staging table
TrvExpenseCategoryStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/ExpenseCategories
Dataverse virtual table
mserp_trvexpensecategoryentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • TrvCostType · root
  • LedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to TrvCostType · read-only
  • DefaultTaxSubCategory (table TrvExpSubCategory) · OuterJoin to TrvCostType · read-only
  • DefaultTaxSharedSubCategory (table TrvSharedSubCategory) · OuterJoin to DefaultTaxSubCategory · read-only
  • CategoryEntity · InnerJoin to TrvCostType · read-only

Fields (17)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AccountTypeType of account used for the category, such as ledger or vendor.Enum
LedgerJournalACType
  • Ledger 0
  • Cust 1
  • Vend 2
  • Project 3
  • FixedAssets 5
  • Bank 6
  • FixedAssets_RU 12
  • Employee_RU 13
  • RDeferrals 14
  • RCash 15
NoYesTrvCostType.AccountType
DescriptionDescription of the expense category.String (60)
TrvCostTxt
NoYesTrvCostType.CostTxt
ExpenseCategoryCode of the expense category. Points to the category table.String (30)
TrvCostTypeEDT
YesYesCategoryTable.CategoryIdTrvCostType.CostType
ExpenseTypeKind of expense, such as per diem, mileage, airline or car rental.Enum
TrvExpTypeEDT
TrvExpType
  • Empty 0
  • Expense 1
  • Advance 2
  • Allowance 3
  • Transport 4
  • Personal 5
  • Airline 6
  • CarRental 7
  • Conference 8
  • Entertainment 9
  • Hotel 10
  • Meals 11
  • Gift 12
YesYesTrvCostType.ExpType
IsCommonYes/No marker for a commonly used category.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesTrvCostType.IsCommon
IsImportOnlyYes/No marker for a category that is used only for imports.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesTrvCostType.isImportOnly
IsInactiveYes/No marker for an inactive category.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesTrvCostType.IsInactive
IsItemizationMandatoryYes/No marker showing that itemization is required for the category.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesTrvCostType.IsItemizationMandatory
LedgerDimensionMain account for the category. Points to a dimension combination.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdTrvCostType.LedgerDimension
DefaultPaymentMethodDefault payment method. Points to the payment methods.String
TrvStdPaiMethod
YesYesTrvPayMethod.PayMethodTrvCostType.StdPaiMethod
TaxItemGroupItem sales tax group. Points to the item sales tax groups.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupTrvCostType.TaxItemGroup
TaxItemGroupIfBilledToEmployeeAlternate item sales tax group. Points to the item sales tax groups.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupTrvCostType.TaxItemGroupIfBilledToEmployee
DefaultTaxSubCategoryRecIdDefault tax subcategory for the category. Points to an expense subcategory.Int64
TrvExpSubCategoryEDT
NoYesTrvExpSubCategory.RecIdTrvCostType.ExpenseEntryAgentDefaultTaxSubCategory
DefaultTaxSubCategoryName of the expense subcategory.String (40)
TrvExpSubCategoryName
YesYesTrvSharedSubCategory.Name
StatisticsGroupStatistics group of the category. Points to the statistics groups.String (32)
TrvCostTypeStatisticsId
NoYesTrvCostTypeStatistics.TrvCostTypeStatisticsIdTrvCostType.TrvCostTypeStatisticsId
LedgerDimensionDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
UseInProjectYes/No flag showing whether the category can be used in projects.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCategoryTable.UseInProject

Foreign keys (7)

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.

Need help with TrvExpenseCategoryEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk