Data entity

MainAccountLegalEntityOverrideEntity

Holds company-specific overrides for a main account. They include sales tax settings, active dates, suspension, exchange rate types, default dimensions and whether manual entry is blocked. The key is the main account, chart of accounts and legal entity.

Entity name
MainAccountLegalEntityOverrideEntity
Public entity name
MainAccountLegalEntity
OData collection
MainAccountLegalEntities
Category
Not set
Module
General ledger
Read-only
No
Data management enabled
Yes
Configuration key
LedgerBasic
Keys
MainAccountId, ChartOfAccounts, LegalEntityId
Staging table
MainAccountLegalEntityOverrideStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/MainAccountLegalEntities
Dataverse virtual table
mserp_mainaccountlegalentityoverrideentity. 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

  • MainAccountLegalEntity · root
  • CompanyInfo · InnerJoin to MainAccountLegalEntity · read-only
  • Ledger · InnerJoin to MainAccountLegalEntity · read-only
  • MainAccount · InnerJoin to MainAccountLegalEntity · read-only
  • LedgerChartOfAccounts · InnerJoin to MainAccount · read-only
  • DimensionAttributeValueWithTypeView · OuterJoin to MainAccountLegalEntity · read-only
  • DefaultDimensionDAVS (table DimensionSetEntity) · OuterJoin to MainAccountLegalEntity · read-only
  • DimensionAttrValueLedgerOverride · OuterJoin to MainAccountLegalEntity
  • ExchangeRateType · OuterJoin to MainAccountLegalEntity · read-only
  • ReportingExchangeRateType (table ExchangeRateType) · OuterJoin to MainAccountLegalEntity · read-only

Fields (25)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
MainAccountIdMain account number, part of the key.String (20)
MainAccountNum
YesYesMainAccount.MainAccountId
ChartOfAccountsName of the chart of accounts. It is the key of the table.String (60)
LedgerChartOfAccountsName
YesYesLedgerChartOfAccounts.Name
LegalEntityIdCompany ID of the legal entity. It is the key.String
SelectableDataArea
YesYesCompanyInfo.DataArea
MainAccountRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (private)MainAccount.RecId
ChartOfAccountsRecIdPoints to the chart of accounts that the account belongs to.Int64
RefRecId
YesNo (private)LedgerChartOfAccounts.RecIdMainAccount.LedgerChartOfAccounts
LegalEntityRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (private)Ledger.RecId
AutoAllocateYes/No flag for allocation on the account in this company.Enum
LedgerAutoAllocate
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccountLegalEntity.AutoAllocate
DefaultDimensionPoints to the default dimension value set for this account.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdMainAccountLegalEntity.DefaultDimension
DefaultDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
FixedDimensionsPoints to the dimension set that is fixed for this account.Int64
DimensionEnumeration
NoNo (private)DimensionAttributeSet.RecIdMainAccountLegalEntity.FixedDimensions
FixedDimensionsDisplayValueThe ledger account with its fixed dimension values, shown as display text.String (500)
DimensionDisplayValue
NoYesvirtual
SalesTaxCodeSales tax code linked to the account.String
TaxCode
NoYesMainAccountLegalEntity.TaxCode
SalesTaxDirectionWhether the sales tax applies to None, Sales or Purchase.Enum
SalesPurch
  • None 0
  • Sales 1
  • Purch 2
NoYesMainAccountLegalEntity.TaxDirection
IsExemptYes/No flag showing whether the account is exempt from tax.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccountLegalEntity.TaxFree
SalesTaxGroupSales tax group linked to the account.String
TaxGroup
NoYesMainAccountLegalEntity.TaxGroup
ItemSalesTaxGroupItem sales tax group linked to the account.String
TaxItemGroup
NoYesMainAccountLegalEntity.TaxItemGroup
ItemSalesTaxGroupHeadingLegalEntityCompany code of the item sales tax group record.low confidenceString
DataAreaId
NoYesMainAccountLegalEntity.TaxItemGroupHeadingDataAreaId
TaxTableLegalEntityCompany code of the sales tax record.low confidenceString
DataAreaId
NoYesMainAccountLegalEntity.TaxTableDataAreaId
ValidateSalesTaxLevel of sales tax checking: optional, required, or limited to one or several valid options.Enum
FieldControl
  • Optional 0
  • FillIn 1
  • Table 2
  • List 3
NoYesMainAccountLegalEntity.ValidateTaxCode
ActiveFromFirst date on which the dimension code is active.Date
DimensionActiveFrom
NoYesDimensionAttrValueLedgerOverride.ActiveFrom
ActiveToLast date on which the dimension code is active.Date
DimensionActiveTo
NoYesDimensionAttrValueLedgerOverride.ActiveTo
IsSuspendedYes/No flag showing whether the dimension code is suspended.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesDimensionAttrValueLedgerOverride.IsSuspended
ExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table.String (20)
ExchangeRateTypeName
NoYesExchangeRateType.Name
ReportingExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table.String (20)
ExchangeRateTypeName
NoYesExchangeRateType.Name
DoNotAllowManualEntryYes/No flag that blocks manual entries on this account.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesMainAccountLegalEntity.DoNotAllowManualEntry

Foreign keys (3)

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.

  • ChartOfAccountsRecId → LedgerChartOfAccounts.RecId (key of LedgerChartOfAccounts)

    Many MainAccount records → exactly one LedgerChartOfAccounts record

    LedgerChartOfAccounts details: see LedgerChartOfAccountsEntity, CPParametersEntity, CPRediscountTableEntity

  • DefaultDimension → DimensionAttributeValueSet.RecId (key of DimensionAttributeValueSet)

    Many MainAccountLegalEntity records → zero or one DimensionAttributeValueSet record

    DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity

  • FixedDimensions → DimensionAttributeSet.RecId (key of DimensionAttributeSet)

    Many MainAccountLegalEntity records → zero or one DimensionAttributeSet record

    DimensionAttributeSet details: see DimensionEnumerationEntity

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

Email sales@drdynamics.co.uk