Table
TrvExpSubCategory
Expense subcategory
Holds expense subcategories that sit under an expense category. Each one links to a shared subcategory name, a ledger account and item sales tax groups. It also has a display order and an inactive flag.
- Table name
TrvExpSubCategory- Module
Expense- Table group
Reference- Table type
Regular- Data per company
Yes- Configuration key
Trv- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CostTypeExpense category the subcategory belongs to. | String (30)TrvCostTypeEDT | Yes | TrvCostType.CostType | TrvExpenseSubCategoryEntityTrvExpTransMobileV2EntityTrvCopilotAutomationExpenseEntityand 6 more |
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 | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DisplayOrderNumber that sets the order in which the subcategory is shown. | IntegerInteger | No | TrvExpenseSubCategoryEntity | |
IsInactiveYes/No flag marking the subcategory as inactive. | EnumNoYesIdNoYes (enum) | No | TrvExpenseSubCategoryEntity | |
LedgerDimensionLedger account, with its dimensions, linked to the subcategory. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | TrvExpenseSubCategoryEntity |
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 | TrvExpenseSubCategoryEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
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 | |
TaxItemGroupItem sales tax group for the subcategory. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | TrvExpenseSubCategoryEntity |
TaxItemGroupIfBilledToEmployeeAnother item sales tax group, used as an alternative when the expense is billed to an employee. | StringSysGroup | No | TaxItemGroupHeading.TaxItemGroup | TrvExpenseSubCategoryEntity |
TrvSharedSubCategoryRecord ID of the shared subcategory that gives this record its name. | Int64RefRecId | Yes | TrvSharedSubCategory.RecId | TrvExpenseSubCategoryEntityTrvExpTransMobileV2EntityTrvCopilotAutomationExpenseEntityand 6 more |
Indexes (4)
LedgerDimensionIdxNot unique.
TrvSharedSubCategoryIdxNot unique.
CostTypeSharedSubCategoryIdxCostType,TrvSharedSubCategoryUnique.
CreatedTransactionIdIdxNot unique.
Relations (5)
Each relation joins TrvExpSubCategory to another table on the fields shown.
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany TrvExpSubCategory records → zero or one DimensionAttributeValueCombination record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany TrvExpSubCategory records → zero or one TaxItemGroupHeading record
TaxItemGroupHeadingBilledToEmployee→TaxItemGroupHeadingJoin on
TaxItemGroupIfBilledToEmployee = TaxItemGroupHeading.TaxItemGroupMany TrvExpSubCategory records → zero or one TaxItemGroupHeading record
TrvCostType→TrvCostTypeJoin on
CostType = TrvCostType.CostTypeMany TrvExpSubCategory records → exactly one TrvCostType record
Get this data out
Tables are not exposed directly. These public entities read from TrvExpSubCategory; use one of them in Power BI, Power Platform or a data management project.
TrvExpenseSubCategoryEntity· 8 fields from this tableTrvExpTransMobileV2Entity· 2 fields from this tableTrvCopilotAutomationExpenseEntity· 2 fields from this tableTrvExpenseCategoryEntity· 0 fields from this tableTrvExpMobileExpenseEntity· 2 fields from this tableTrvExpMobileExpenseLineAttachedToReportEntity· 2 fields from this tableTrvExpMobileLineApprovalEntity· 2 fields from this tableTrvExpTransMobileEntity· 2 fields from this tableTrvExpTransEntity· 2 fields from this tableTrvExpenseAgentExpenseEntity· 2 fields from this table
Need help with TrvExpSubCategory in a report, an integration or a migration? Talk to Dr Dynamics.