Data entity
MainAccountEntity
Main accounts of a chart of accounts. The key is the chart of accounts and the main account ID. Each record holds the name, main account type, posting type, category and currency settings. It also holds validation options, exchange rate types and active dates. Records link to the chart of accounts and main account categories.
- Entity name
MainAccountEntity- Public entity name
MainAccount- OData collection
MainAccounts- Category
Not set- Module
General ledger- Read-only
No- Data management enabled
Yes- Configuration key
LedgerBasic- Keys
ChartOfAccounts, MainAccountId- Staging table
MainAccountStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/MainAccounts- Dataverse virtual table
mserp_mainaccountentity. 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
MainAccount· rootLedgerChartOfAccounts· InnerJoin toMainAccount· read-onlyMainAccountCategory· OuterJoin toMainAccount· read-onlyOffsetLedgerDimensionDAVC(tableDimensionCombinationEntity) · OuterJoin toMainAccount· read-onlyFinancialReportingExchangeRateType(tableExchangeRateType) · OuterJoin toMainAccount· read-onlyDimensionAttributeValueWithTypeView· OuterJoin toMainAccountOpeningAccount(tableMainAccount) · OuterJoin toMainAccount· read-onlyParentAccount(tableMainAccount) · OuterJoin toMainAccount· read-onlyExchangeAdjustmentRateType(tableExchangeRateType) · OuterJoin toMainAccount· read-onlyReportingExchangeAdjustmentRateType(tableExchangeRateType) · OuterJoin toMainAccount· read-only
Fields (45)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
MainAccountCategoryName of the main account category. | String (20)AccountCategory | No | Yes | MainAccountCategory.AccountCategory | |
AccountCategoryReferencePoints to the main account category of the account. | IntegerAccountCategoryRef | No | No (private) | MainAccountCategory.AccountCategoryRef | MainAccount.AccountCategoryRef |
ClosingClosing choice for the account: none, result, balance or capital. | Enum
| No | Yes | MainAccount.Closing | |
DefaultConsolidationAccountDefault main account used for consolidation, as text. | String (20)LedgerConsolidateMainAccount | No | Yes | MainAccount.ConsolidationMainAccount | |
DefaultCurrencyCurrency code linked to the account. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | MainAccount.CurrencyCode |
BalanceControlBalance control choice: none, debit or credit. | EnumDebCredBalanceDemand
| No | Yes | MainAccount.DebitCreditBalanceDemand | |
DebitCreditRequirementDebit or credit requirement for the account: none, debit or credit. | Enum
| No | Yes | MainAccount.DebitCreditCheck | |
DebitCreditDefaultDebit or credit side suggested for the account: none, debit or credit. | Enum
| No | Yes | MainAccount.DebitCreditProposal | |
ForeignCurrencyRevaluationYes/no flag for foreign currency revaluation of the account. | Enum
| No | Yes | MainAccount.ExchangeAdjusted | |
FinancialReportingExchangeRateTypeRecIdPoints to the exchange rate type used for financial reporting. | Int64ExchangeRateTypeRecId | No | No (private) | ExchangeRateType.RecId | MainAccount.FinancialReportingExchangeRateType |
FinancialReportingCurrencyTranslationTypeCurrency translation type for reporting: weighted average, average, current or transaction date. | Enum
| No | Yes | MainAccount.FinancialReportingTranslationType | |
ChartOfAccountsRecIdPoints to the chart of accounts that the account belongs to. | Int64RefRecId | No | Yes | LedgerChartOfAccounts.RecId | MainAccount.LedgerChartOfAccounts |
MainAccountIdMain account number, part of the key. | String (20)MainAccountNum | Yes | Yes | MainAccount.MainAccountId | |
MandatoryPaymentReferenceYes/no flag that shows whether a payment reference is mandatory. | Enum
| No | Yes | MainAccount.MandatoryPaymentReference | |
MonetaryYes/no flag that shows whether the account is monetary. | EnumLedgerMonetary
| No | Yes | MainAccount.Monetary | |
NameName of the main account. | String (60)AccountName | Yes | Yes | MainAccount.Name | |
OffsetAccountPoints to a dimension code combination used as the offset account. | Int64LedgerDimensionDefaultAccount | No | No (private) | DimensionAttributeValueCombination.RecId | MainAccount.OffsetLedgerDimension |
PostingTypePosting type assigned to the account, such as exchange rate gain, sales tax or allocation. | Enum
| No | Yes | MainAccount.PostingType | |
SRUCodeSRU code of the account (up to 4 characters). | String (4)LedgerSRUCode | No | Yes | MainAccount.SRUCode | |
MainAccountTypeMain account type, such as profit and loss, revenue, expense, balance sheet or asset. | Enum
| No | Yes | MainAccount.Type | |
UserUser ID linked to the account.low confidence | StringUserId | No | Yes | MainAccount.UserInfoId | |
ValidateCurrencyRule for the currency code: optional, required, or limited to one or several valid options. | Enum
| No | Yes | MainAccount.ValidateCurrency | |
ValidatePostingTypeRule for validating posting: optional, required, or limited to one or several valid options. | Enum
| No | Yes | MainAccount.ValidatePosting | |
ValidateUserRule for the user: optional, required, or limited to one or several valid options. | Enum
| No | Yes | MainAccount.ValidateUser | |
OffsetAccountDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
OpeningAccountIdMain account number, part of the key. | String (20)MainAccountNum | No | Yes | MainAccount.MainAccountId | |
ChartOfAccountsName of the chart of accounts. It is the key of the table. | String (60)LedgerChartOfAccountsName | Yes | Yes | LedgerChartOfAccounts.Name | |
ReportingAccountTypeReporting type of the account, such as none, header, empty header or page header. | Enum
| No | Yes | MainAccount.ReportingAccountType | |
FinancialReportingExchangeRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
DoNotAllowManualEntryYes/no flag that shows whether the value cannot be typed in by hand. | Enum
| No | Yes | DimensionAttributeValue.IsBlockedForManualEntry | |
IsSuspendedYes/no flag that marks the value as suspended. | Enum
| No | Yes | DimensionAttributeValue.IsSuspended | |
ActiveFromFirst date on which the dimension value is active. | DateDimensionActiveFrom | No | Yes | DimensionAttributeValue.ActiveFrom | |
ActiveToLast date on which the dimension value is active. | DateDimensionActiveTo | No | Yes | DimensionAttributeValue.ActiveTo | |
MainAccountRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | MainAccount.RecId | |
AccountCategoryDescriptionShort description of the category. | String (60)Description | No | Yes | MainAccountCategory.Description | |
AdjustmentMethodAdjustment method for the account, such as transaction date or monthly balance. Used for Mexico. | Enum
| No | Yes | MainAccount.AdjustmentMethod_MX | |
InflationAdjustmentYes/no flag for the B-10 inflation adjustment. Used for Mexico. | EnumInflationAdjustment_MX
| No | Yes | MainAccount.InflationAdjustment_MX | |
RepomoTypeREPOMO type: not applicable, asset or liability. Used for Mexico. | Enum
| No | Yes | MainAccount.RepomoType_MX | |
ParentMainAccountIdMain account number, part of the key. | String (20)MainAccountNum | No | Yes | MainAccount.MainAccountId | |
AccountCategoryRefNumeric ID of the category. It is the key of the table. | IntegerAccountCategoryRef | Yes | No (private) | MainAccountCategory.AccountCategoryRef | |
ExchangeAdjustmentRateTypeRecIdPoints to the exchange rate type used for adjustment. | Int64ExchangeRateTypeRecId | No | No (private) | ExchangeRateType.RecId | MainAccount.ExchangeAdjustmentRateType |
ExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
ReportingExchangeAdjustmentRateTypeRecIdPoints to the exchange rate type for adjusting in the reporting currency. | Int64ExchangeRateTypeRecId | No | No (private) | ExchangeRateType.RecId | MainAccount.ReportingExchangeAdjustmentRateType |
ReportingExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
NatureCode_BRTwo-character nature code of the account. Used for Brazil. | String (2)NatureCode_BR | No | Yes | MainAccount.NatureCode_BR |
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.
AccountCategoryReference→MainAccountCategory.AccountCategoryRef(key of MainAccountCategory)Many MainAccount records → zero or one MainAccountCategory record
MainAccountCategory details: see MainAccountCategoryEntity, LedgerConsolidateAccountGroupV2Entity, MainAccountCategoryBiEntity
DefaultCurrency→Currency.CurrencyCode(key of Currency)Many MainAccount records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
FinancialReportingExchangeRateTypeRecId→ExchangeRateType.RecId(key of ExchangeRateType)Many MainAccount records → zero or one ExchangeRateType record
ExchangeRateType details: see LedgerConfigurationEntity, LedgerEntity, BankAccountEntity
ChartOfAccountsRecId→LedgerChartOfAccounts.RecId(key of LedgerChartOfAccounts)Many MainAccount records → exactly one LedgerChartOfAccounts record
LedgerChartOfAccounts details: see LedgerChartOfAccountsEntity, CPParametersEntity, CPRediscountTableEntity
OffsetAccount→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many MainAccount records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
ExchangeAdjustmentRateTypeRecId→ExchangeRateType.RecId(key of ExchangeRateType)Many MainAccount records → zero or one ExchangeRateType record
ExchangeRateType details: see LedgerConfigurationEntity, LedgerEntity, BankAccountEntity
ReportingExchangeAdjustmentRateTypeRecId→ExchangeRateType.RecId(key of ExchangeRateType)Many MainAccount records → zero or one ExchangeRateType record
ExchangeRateType details: see LedgerConfigurationEntity, LedgerEntity, BankAccountEntity
Need help with MainAccountEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.