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· rootLedgerDimensionDAVC(tableDimensionCombinationEntity) · OuterJoin toTrvCostType· read-onlyDefaultTaxSubCategory(tableTrvExpSubCategory) · OuterJoin toTrvCostType· read-onlyDefaultTaxSharedSubCategory(tableTrvSharedSubCategory) · OuterJoin toDefaultTaxSubCategory· read-onlyCategoryEntity· InnerJoin toTrvCostType· read-only
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountTypeType of account used for the category, such as ledger or vendor. | Enum
| No | Yes | TrvCostType.AccountType | |
DescriptionDescription of the expense category. | String (60)TrvCostTxt | No | Yes | TrvCostType.CostTxt | |
ExpenseCategoryCode of the expense category. Points to the category table. | String (30)TrvCostTypeEDT | Yes | Yes | CategoryTable.CategoryId | TrvCostType.CostType |
ExpenseTypeKind of expense, such as per diem, mileage, airline or car rental. | EnumTrvExpTypeEDT
| Yes | Yes | TrvCostType.ExpType | |
IsCommonYes/No marker for a commonly used category. | Enum
| No | Yes | TrvCostType.IsCommon | |
IsImportOnlyYes/No marker for a category that is used only for imports. | Enum
| No | Yes | TrvCostType.isImportOnly | |
IsInactiveYes/No marker for an inactive category. | EnumNoYesId
| No | Yes | TrvCostType.IsInactive | |
IsItemizationMandatoryYes/No marker showing that itemization is required for the category. | EnumNoYesId
| No | Yes | TrvCostType.IsItemizationMandatory | |
LedgerDimensionMain account for the category. Points to a dimension combination. | Int64LedgerDimensionDefaultAccount | No | No (private) | DimensionAttributeValueCombination.RecId | TrvCostType.LedgerDimension |
DefaultPaymentMethodDefault payment method. Points to the payment methods. | StringTrvStdPaiMethod | Yes | Yes | TrvPayMethod.PayMethod | TrvCostType.StdPaiMethod |
TaxItemGroupItem sales tax group. Points to the item sales tax groups. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | TrvCostType.TaxItemGroup |
TaxItemGroupIfBilledToEmployeeAlternate item sales tax group. Points to the item sales tax groups. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | TrvCostType.TaxItemGroupIfBilledToEmployee |
DefaultTaxSubCategoryRecIdDefault tax subcategory for the category. Points to an expense subcategory. | Int64TrvExpSubCategoryEDT | No | Yes | TrvExpSubCategory.RecId | TrvCostType.ExpenseEntryAgentDefaultTaxSubCategory |
DefaultTaxSubCategoryName of the expense subcategory. | String (40)TrvExpSubCategoryName | Yes | Yes | TrvSharedSubCategory.Name | |
StatisticsGroupStatistics group of the category. Points to the statistics groups. | String (32)TrvCostTypeStatisticsId | No | Yes | TrvCostTypeStatistics.TrvCostTypeStatisticsId | TrvCostType.TrvCostTypeStatisticsId |
LedgerDimensionDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
UseInProjectYes/No flag showing whether the category can be used in projects. | Enum
| No | Yes | CategoryTable.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.
ExpenseCategory→CategoryTable.CategoryId(key of CategoryTable)Zero or one TrvCostType record → exactly one CategoryTable record
CategoryTable details: see CategoryEntity
LedgerDimension→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many TrvCostType records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
DefaultPaymentMethod→TrvPayMethod.PayMethod(key of TrvPayMethod)Many TrvCostType records → exactly one TrvPayMethod record
TrvPayMethod details: see TrvPayMethodEntity
TaxItemGroup→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many TrvCostType records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
TaxItemGroupIfBilledToEmployee→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many TrvCostType records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
DefaultTaxSubCategoryRecId→TrvExpSubCategory.RecId(key of TrvExpSubCategory)Relation also requires TrvExpSubCategory.IsInactive = NoYes::No.
Many TrvCostType records → zero or one TrvExpSubCategory record
TrvExpSubCategory details: see TrvExpenseSubCategoryEntity, TrvCopilotAutomationExpenseEntity, TrvExpMobileExpenseEntity
StatisticsGroup→TrvCostTypeStatistics.TrvCostTypeStatisticsId(key of TrvCostTypeStatistics)Many TrvCostType records → zero or one TrvCostTypeStatistics record
TrvCostTypeStatistics details: see TrvStatisticsGroupEntity
Need help with TrvExpenseCategoryEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.