Table
MainAccountCategory
Main account categories
Lists main account categories, identified by a reference ID. Each category has a name, a description, an account type such as asset, liability or revenue, a display order and a closed flag.
- Table name
MainAccountCategory- Module
General ledger- Table group
Main- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
None- Replacement key
AcctCategoryRefIdx- Key fields
AccountCategoryRef- Model
Ledger
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCategoryRefNumeric ID of the category. It is the key of the table. | IntegerAccountCategoryRef | Yes | MainAccountCategoryEntityMainAccountCategoryBiEntityMainAccountCategoryCDREntityand 1 more | |
AccountCategoryName of the main account category. | String (20)AccountCategory | Yes | MainAccountCategoryEntityMainAccountCategoryBiEntityMainAccountCategoryCDREntityand 1 more | |
AccountCategoryDisplayOrderNumber that sets the order in which categories are listed. | IntegerAccountCategoryDisplayOrder | No | MainAccountCategoryEntityMainAccountCategoryBiEntityMainAccountCategoryCDREntity | |
AccountTypeType of account for the category, such as profit and loss, balance sheet, asset or equity. | EnumDimensionLedgerAccCategoryAccountType (enum) | No | MainAccountCategoryEntityMainAccountCategoryBiEntityMainAccountCategoryCDREntity | |
ClosedYes/No flag showing whether the category is closed. | EnumNoYes (enum) | No | MainAccountCategoryEntityMainAccountCategoryBiEntityMainAccountCategoryCDREntity | |
DescriptionShort description of the category. | String (60)Description | No | MainAccountCategoryEntityMainAccountCategoryBiEntityMainAccountCategoryCDREntityand 2 more | |
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 | MainAccountCategoryBiEntityMainAccountCategoryCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | MainAccountCategoryBiEntity | |
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 |
Indexes (2)
AcctCategoryRefIdxReplacement keyUnique, alternate key.
AcctCategoryDisplayOrderIdxNot unique.
Get this data out
Tables are not exposed directly. These public entities read from MainAccountCategory; use one of them in Power BI, Power Platform or a data management project.
MainAccountCategoryEntity· 6 fields from this tableMainAccountCategoryBiEntity· 8 fields from this tableMainAccountCategoryCDREntity· 7 fields from this tableLedgerConsolidateAccountGroupV2Entity· 1 field from this tableMainAccountEntity· 3 fields from this table
Need help with MainAccountCategory in a report, an integration or a migration? Talk to Dr Dynamics.