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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CostTypeExpense category the subcategory belongs to.String (30)
TrvCostTypeEDT
YesTrvCostType.CostTypeTrvExpenseSubCategoryEntityTrvExpTransMobileV2EntityTrvCopilotAutomationExpenseEntityand 6 more
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DisplayOrderNumber that sets the order in which the subcategory is shown.Integer
Integer
NoTrvExpenseSubCategoryEntity
IsInactiveYes/No flag marking the subcategory as inactive.Enum
NoYesId
NoYes (enum)
NoTrvExpenseSubCategoryEntity
LedgerDimensionLedger account, with its dimensions, linked to the subcategory.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdTrvExpenseSubCategoryEntity
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
NoTrvExpenseSubCategoryEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
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
TaxItemGroupItem sales tax group for the subcategory.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupTrvExpenseSubCategoryEntity
TaxItemGroupIfBilledToEmployeeAnother item sales tax group, used as an alternative when the expense is billed to an employee.String
SysGroup
NoTaxItemGroupHeading.TaxItemGroupTrvExpenseSubCategoryEntity
TrvSharedSubCategoryRecord ID of the shared subcategory that gives this record its name.Int64
RefRecId
YesTrvSharedSubCategory.RecIdTrvExpenseSubCategoryEntityTrvExpTransMobileV2EntityTrvCopilotAutomationExpenseEntityand 6 more

Indexes (4)

Relations (5)

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

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many TrvExpSubCategory records → zero or one DimensionAttributeValueCombination record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many TrvExpSubCategory records → zero or one TaxItemGroupHeading record

  • TaxItemGroupHeadingBilledToEmployee → TaxItemGroupHeading

    Join on TaxItemGroupIfBilledToEmployee = TaxItemGroupHeading.TaxItemGroup

    Many TrvExpSubCategory records → zero or one TaxItemGroupHeading record

  • TrvCostType → TrvCostType

    Join on CostType = TrvCostType.CostType

    Many TrvExpSubCategory records → exactly one TrvCostType record

  • TrvSharedSubCategory → TrvSharedSubCategory

    Join on TrvSharedSubCategory = TrvSharedSubCategory.RecId

    Many TrvExpSubCategory records → exactly one TrvSharedSubCategory 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.

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

Email sales@drdynamics.co.uk