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 · root
  • LedgerChartOfAccounts · InnerJoin to MainAccount · read-only
  • MainAccountCategory · OuterJoin to MainAccount · read-only
  • OffsetLedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to MainAccount · read-only
  • FinancialReportingExchangeRateType (table ExchangeRateType) · OuterJoin to MainAccount · read-only
  • DimensionAttributeValueWithTypeView · OuterJoin to MainAccount
  • OpeningAccount (table MainAccount) · OuterJoin to MainAccount · read-only
  • ParentAccount (table MainAccount) · OuterJoin to MainAccount · read-only
  • ExchangeAdjustmentRateType (table ExchangeRateType) · OuterJoin to MainAccount · read-only
  • ReportingExchangeAdjustmentRateType (table ExchangeRateType) · OuterJoin to MainAccount · read-only

Fields (45)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
MainAccountCategoryName of the main account category.String (20)
AccountCategory
NoYesMainAccountCategory.AccountCategory
AccountCategoryReferencePoints to the main account category of the account.Integer
AccountCategoryRef
NoNo (private)MainAccountCategory.AccountCategoryRefMainAccount.AccountCategoryRef
ClosingClosing choice for the account: none, result, balance or capital.Enum
LedgerClosing
  • None 0
  • Result 1
  • BalanceSheet 2
  • Capital 3
NoYesMainAccount.Closing
DefaultConsolidationAccountDefault main account used for consolidation, as text.String (20)
LedgerConsolidateMainAccount
NoYesMainAccount.ConsolidationMainAccount
DefaultCurrencyCurrency code linked to the account.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeMainAccount.CurrencyCode
BalanceControlBalance control choice: none, debit or credit.Enum
DebCredBalanceDemand
DebCredProposal
  • None 0
  • Debit 1
  • Credit 2
NoYesMainAccount.DebitCreditBalanceDemand
DebitCreditRequirementDebit or credit requirement for the account: none, debit or credit.Enum
DebCredProposal
  • None 0
  • Debit 1
  • Credit 2
NoYesMainAccount.DebitCreditCheck
DebitCreditDefaultDebit or credit side suggested for the account: none, debit or credit.Enum
DebCredProposal
  • None 0
  • Debit 1
  • Credit 2
NoYesMainAccount.DebitCreditProposal
ForeignCurrencyRevaluationYes/no flag for foreign currency revaluation of the account.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccount.ExchangeAdjusted
FinancialReportingExchangeRateTypeRecIdPoints to the exchange rate type used for financial reporting.Int64
ExchangeRateTypeRecId
NoNo (private)ExchangeRateType.RecIdMainAccount.FinancialReportingExchangeRateType
FinancialReportingCurrencyTranslationTypeCurrency translation type for reporting: weighted average, average, current or transaction date.Enum
FinancialReportingTranslationType
  • WeightedAverage 0
  • StandardAverage 1
  • Current 2
  • TransactionDate 3
NoYesMainAccount.FinancialReportingTranslationType
ChartOfAccountsRecIdPoints to the chart of accounts that the account belongs to.Int64
RefRecId
NoYesLedgerChartOfAccounts.RecIdMainAccount.LedgerChartOfAccounts
MainAccountIdMain account number, part of the key.String (20)
MainAccountNum
YesYesMainAccount.MainAccountId
MandatoryPaymentReferenceYes/no flag that shows whether a payment reference is mandatory.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccount.MandatoryPaymentReference
MonetaryYes/no flag that shows whether the account is monetary.Enum
LedgerMonetary
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccount.Monetary
NameName of the main account.String (60)
AccountName
YesYesMainAccount.Name
OffsetAccountPoints to a dimension code combination used as the offset account.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdMainAccount.OffsetLedgerDimension
PostingTypePosting type assigned to the account, such as exchange rate gain, sales tax or allocation.Enum
LedgerPostingType
  • None 0
  • ExchRateGain 1
  • ExchRateLoss 2
  • InterCompany 3
  • Tax 4
  • VATRoundOff 5
  • Allocation 6
  • InvestmentDuty 7
  • Liquidity 8
  • MSTDiffSecond 9
  • ErrorAccount 10
  • MSTDiff 11
  • YearResult 12
  • Closing 13
  • LedgerJournal 14
  • CashDiscount 15
  • ConsolidateDiffBalance 16
  • PaymentFee 17
  • TaxReport 18
  • TransferOpeningClosing 19
  • Bank 20
  • ConversionProfit 21
  • ConversionLoss 22
  • TaxWithhold 23
  • ConsolidateDiffProfitLoss 24
  • IndirectEstimatedAbsorptionOffset 25
  • IndirectAbsorption 26
  • IndirectAbsorptionOffset 27
  • FreeTextInvoice 28
  • ConversionReportingLoss 29
  • ConversionReportingProfit 30
  • CustBalance 31
  • CustRevenue 32
  • CustInterest 33
  • CustCashDisc 34
  • CustCollectionLetterFee 35
  • CustInterestFee 36
  • CustInvoiceDisc 37
  • CustPayment 38
  • CustReimbursement 39
  • CustSettlement 40
  • VendBalance 41
  • VendPurchLedger 42
  • VendOffsetAccount 43
  • VendInterest 44
  • VendCashDisc 45
  • VendPayment 46
  • VendInvoiceDisc 47
  • VendSettlement 48
  • CrossCompanySettlement 49
  • InventIssueFixedAsset 50
  • SalesRevenue 51
  • SalesConsump 52
  • SalesDisc 53
  • SalesCash 54
  • SalesFreight 55
  • SalesFee 56
  • SalesPostage 57
  • SalesRoundOff 58
  • SalesPackingSlip 59
  • SalesOffsetAccountPackingSlip 60
  • SalesIssue 61
  • SalesCommission 62
  • SalesOffsetAccountCommission 63
  • SalesPckSlipRevenue 64
  • SalesPckSlipRevenueOffsetAccount 65
  • Rebate 66
  • PdsCWLoss 67
  • PdsCWProfit 68
  • PurchConsump 71
  • PurchDisc 72
  • PurchCash 73
  • PurchFreight 74
  • PurchFee 75
  • PurchPostage 76
  • PurchOffsetAccount 77
  • PurchaseInvoiceRoundOff 78
  • PurchMarkupFreight 79
  • PurchMarkupCustoms 80
  • PurchMarkupInsurance 81
  • PurchPckSlp 82
  • PurchOffsetAccountPckSlp 83
  • PurchReceipt 84
  • PurchStdProfit 85
  • PurchStdLoss 86
  • PurchStdOffsetAccount 87
  • InventReceipt 91
  • InventIssue 92
  • InventProfit 93
  • InventLoss 94
  • InventStdProfit 95
  • InventStdLoss 96
  • Opening_ES 97
  • PurchReq 98
  • PurchOrder 99
  • APInvoice 100
  • Budget 101
  • PurchOrderYearEnd 102
  • InflationAdjustment_MX 103
  • ProdReportFinished 105
  • ProdReportFinishedOffsetAccount 106
  • ProdIssue 107
  • ProdIssueOffsetAccount 108
  • ProdReceipt 109
  • ProdReceiptOffsetAccount 110
  • ProdPicklistOffsetAccount 111
  • ProdPicklist 112
  • ProdWIPValuation 113
  • ProdWIPIssue 114
  • ProdWrkCtrIssue 115
  • ProdScrap 116
  • ProdWrkCtrIssueOffsetAccount 117
  • ProdScrapOffsetAccount 118
  • ProdLeanWIPServiceReceipt 119
  • ProdLeanWIPServiceClearing 120
  • ProjCost 121
  • ProjPayrollAllocation 122
  • ProjWIPCostvalue 123
  • ProjOffsetAccountItem 124
  • ProjStatusAccountItem 125
  • ProjTurnover 126
  • ProjOnAccount 127
  • ProjSalesvalue 128
  • ProjSalesvalueOffset 129
  • ProjAccruedTurnoverProd 130
  • ProjWIPProduction 131
  • ProJAccruedTurnoverProfit 132
  • ProjWIPProfit 133
  • ProjNeverLedger 134
  • ProjAccruedCost 135
  • ProjWIPCost 136
  • ProjAccruedRevenueOnAccount 137
  • ProjWIPInvoicedOnAccount 138
  • ProjNoLedger 139
  • PayrollDebitAccount 141
  • PayrollCreditAccount 142
  • EmplPayment_RU 146
  • RTSLTranslationDifference 147
  • RCash 148
  • InventRoundingLoss_RU 149
  • InventRoundingProfit_RU 150
  • AdvanceAdjustmentGain_RU 151
  • AdvanceAdjustmentLoss_RU 152
  • FixedAssetsDebit 161
  • FixedAssetsCredit 162
  • CACLedgerJournalNoOff 163
  • AmountDiffGain_RU 165
  • AmountDiffLoss_RU 166
  • Misc_IN 175
  • TransferGoodsTransit_IN 176
  • TransferScrap_IN 177
  • PurchCharge 201
  • PurchStockVariation 202
  • PurchPckSlpPurchaseOffsetAccount 203
  • PurchPckSlpTax 204
  • PurchPckSlpPurchase 205
  • SalesPackingslipTax 206
  • ProjAccruedRevenueSubscription 207
  • ProjWIPSubscription 208
  • TaxOffsetWithhold_TH 209
  • InventStdCostChangeVariance 210
  • InventSystemRounding 211
  • PurchAdvance 212
  • PurchStdCostPurchasePriceVariance 213
  • PurchAdvanceApplication 214
  • ProdStdCostProductionVariance 216
  • SalesGoodsInRoute_RU 217
  • SalesGoodsInRouteOffset_RU 218
  • InventInterUnitPayable 219
  • InventInterUnitReceivable 220
  • IndirectEstimatedAbsorption 221
  • ProdStdCostLotSizeVariance 222
  • ProdStdCostQuantityVariance 223
  • ProdStdCostSubstitutionVariance 224
  • InventStdCostRoundingVariance 225
  • PurchReceiptFixedAsset 226
  • PSATransportation 228
  • PSACompanyCCClearing 229
  • PSAEmployeeClearing 230
  • PSAEmployeeAdvance 231
  • PSAWriteOffCap 232
  • PSAProjRetain 233
  • PSAProjPurchRetain 234
  • InventStdCostRevaluation 235
  • PurchExpense 236
  • VAT_IN 180
  • InventMovingAveragePriceDifference 237
  • SalesTax_IN 181
  • InventMovingAverageCostRevaluation 238
  • Excise_IN 182
  • IntercompanyCost 239
  • ServiceTax_IN 183
  • IntercompanyRevenue 240
  • Customs_IN 184
  • TDS_IN 185
  • TCS_IN 186
  • TransferIssue_IN 244
  • TransferReceipt_IN 245
  • TransferProfit_IN 246
  • TransferLoss_IN 247
  • TaxAdjustmentSettlement_IN 250
  • TaxExpense_BR 199
  • BankStatement 249
  • EmplBalance_RU 227
  • DebitNote_BR 69
  • CustFine_BR 248
  • VendFine_BR 70
  • Payroll 195
  • InterunitDebit 88
  • InterunitCredit 89
  • FixedAssetsDebit_RU 241
  • FixedAssetsCredit_RU 242
  • TransferInterim_IN 90
  • DeferralsDebit_RU 243
  • DeferralsCredit_RU 215
  • MCRReturns 159
  • MCRReturnsConsump 160
  • MCRUnderpayWriteOff 164
  • MCRBrokerFee 190
  • RPayTaxRefundOffset 200
  • BudgetReservation_PSN 104
  • BudgetReservationYearEnd_PSN 140
  • SalesAdvance 251
  • ProjAccruedRevenueAdjustment 252
  • ProjectLineDiscount 253
  • GST_IN
  • ReportingCurrencyAdjustment
  • SalesCreditNote_IT
  • SalesForFree_IT
  • ProjProcurementIntegration
  • AccountReconciliationJournalOffset
  • ITMGIT 170
  • ITMCostAccrual 171
  • ITMCostClearing 172
  • ITMCostChargeAccrual 173
  • ITMCostCharge 174
  • ITMCostVariance 179
  • RevRecDeferredRevenue
  • RevRecDeferredCostOfGoodsSold
  • RevRecPartialRevenue
  • RevRecDeferredCost
  • SalesRevenueOffset
  • SalesDiscOffset
  • UnbilledDiscOffset
  • DeferredCost
  • DeferredRevenue
NoYesMainAccount.PostingType
SRUCodeSRU code of the account (up to 4 characters).String (4)
LedgerSRUCode
NoYesMainAccount.SRUCode
MainAccountTypeMain account type, such as profit and loss, revenue, expense, balance sheet or asset.Enum
DimensionLedgerAccountType
  • Blank 10
  • ProfitAndLoss 0
  • Revenue 1
  • Expense 2
  • BalanceSheet 3
  • Asset 4
  • Liability 5
  • Equity 6
  • Total 8
  • Reporting 9
  • Common_CN 100
NoYesMainAccount.Type
UserUser ID linked to the account.low confidenceString
UserId
NoYesMainAccount.UserInfoId
ValidateCurrencyRule for the currency code: optional, required, or limited to one or several valid options.Enum
FieldControl
  • Optional 0
  • FillIn 1
  • Table 2
  • List 3
NoYesMainAccount.ValidateCurrency
ValidatePostingTypeRule for validating posting: optional, required, or limited to one or several valid options.Enum
FieldControl
  • Optional 0
  • FillIn 1
  • Table 2
  • List 3
NoYesMainAccount.ValidatePosting
ValidateUserRule for the user: optional, required, or limited to one or several valid options.Enum
FieldControl
  • Optional 0
  • FillIn 1
  • Table 2
  • List 3
NoYesMainAccount.ValidateUser
OffsetAccountDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
OpeningAccountIdMain account number, part of the key.String (20)
MainAccountNum
NoYesMainAccount.MainAccountId
ChartOfAccountsName of the chart of accounts. It is the key of the table.String (60)
LedgerChartOfAccountsName
YesYesLedgerChartOfAccounts.Name
ReportingAccountTypeReporting type of the account, such as none, header, empty header or page header.Enum
DimensionLedgerAccountReportingType
  • None 0
  • Heading 1
  • HeadingEmpty 2
  • HeadingPage 3
NoYesMainAccount.ReportingAccountType
FinancialReportingExchangeRateTypeName of the exchange rate type. It is the key of the table.String (20)
ExchangeRateTypeName
NoYesExchangeRateType.Name
DoNotAllowManualEntryYes/no flag that shows whether the value cannot be typed in by hand.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesDimensionAttributeValue.IsBlockedForManualEntry
IsSuspendedYes/no flag that marks the value as suspended.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesDimensionAttributeValue.IsSuspended
ActiveFromFirst date on which the dimension value is active.Date
DimensionActiveFrom
NoYesDimensionAttributeValue.ActiveFrom
ActiveToLast date on which the dimension value is active.Date
DimensionActiveTo
NoYesDimensionAttributeValue.ActiveTo
MainAccountRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesMainAccount.RecId
AccountCategoryDescriptionShort description of the category.String (60)
Description
NoYesMainAccountCategory.Description
AdjustmentMethodAdjustment method for the account, such as transaction date or monthly balance. Used for Mexico.Enum
AdjustmentMethod_MX
  • None 0
  • TransactionDate 1
  • OpenBalance 2
  • MonthlyBalance 3
  • Balance 4
NoYesMainAccount.AdjustmentMethod_MX
InflationAdjustmentYes/no flag for the B-10 inflation adjustment. Used for Mexico.Enum
InflationAdjustment_MX
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccount.InflationAdjustment_MX
RepomoTypeREPOMO type: not applicable, asset or liability. Used for Mexico.Enum
RepomoType_MX
  • NotApplicable 0
  • Asset 1
  • Liability 2
NoYesMainAccount.RepomoType_MX
ParentMainAccountIdMain account number, part of the key.String (20)
MainAccountNum
NoYesMainAccount.MainAccountId
AccountCategoryRefNumeric ID of the category. It is the key of the table.Integer
AccountCategoryRef
YesNo (private)MainAccountCategory.AccountCategoryRef
ExchangeAdjustmentRateTypeRecIdPoints to the exchange rate type used for adjustment.Int64
ExchangeRateTypeRecId
NoNo (private)ExchangeRateType.RecIdMainAccount.ExchangeAdjustmentRateType
ExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table.String (20)
ExchangeRateTypeName
NoYesExchangeRateType.Name
ReportingExchangeAdjustmentRateTypeRecIdPoints to the exchange rate type for adjusting in the reporting currency.Int64
ExchangeRateTypeRecId
NoNo (private)ExchangeRateType.RecIdMainAccount.ReportingExchangeAdjustmentRateType
ReportingExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table.String (20)
ExchangeRateTypeName
NoYesExchangeRateType.Name
NatureCode_BRTwo-character nature code of the account. Used for Brazil.String (2)
NatureCode_BR
NoYesMainAccount.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.

Need help with MainAccountEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk