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· rootCompanyInfo· InnerJoin toMainAccountLegalEntity· read-onlyLedger· InnerJoin toMainAccountLegalEntity· read-onlyMainAccount· InnerJoin toMainAccountLegalEntity· read-onlyLedgerChartOfAccounts· InnerJoin toMainAccount· read-onlyDimensionAttributeValueWithTypeView· OuterJoin toMainAccountLegalEntity· read-onlyDefaultDimensionDAVS(tableDimensionSetEntity) · OuterJoin toMainAccountLegalEntity· read-onlyDimensionAttrValueLedgerOverride· OuterJoin toMainAccountLegalEntityExchangeRateType· OuterJoin toMainAccountLegalEntity· read-onlyReportingExchangeRateType(tableExchangeRateType) · OuterJoin toMainAccountLegalEntity· read-only
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
MainAccountIdMain account number, part of the key. | String (20)MainAccountNum | Yes | Yes | MainAccount.MainAccountId | |
ChartOfAccountsName of the chart of accounts. It is the key of the table. | String (60)LedgerChartOfAccountsName | Yes | Yes | LedgerChartOfAccounts.Name | |
LegalEntityIdCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
MainAccountRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | No (private) | MainAccount.RecId | |
ChartOfAccountsRecIdPoints to the chart of accounts that the account belongs to. | Int64RefRecId | Yes | No (private) | LedgerChartOfAccounts.RecId | MainAccount.LedgerChartOfAccounts |
LegalEntityRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | No (private) | Ledger.RecId | |
AutoAllocateYes/No flag for allocation on the account in this company. | EnumLedgerAutoAllocate
| No | Yes | MainAccountLegalEntity.AutoAllocate | |
DefaultDimensionPoints to the default dimension value set for this account. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | MainAccountLegalEntity.DefaultDimension |
DefaultDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
FixedDimensionsPoints to the dimension set that is fixed for this account. | Int64DimensionEnumeration | No | No (private) | DimensionAttributeSet.RecId | MainAccountLegalEntity.FixedDimensions |
FixedDimensionsDisplayValueThe ledger account with its fixed dimension values, shown as display text. | String (500)DimensionDisplayValue | No | Yes | virtual | |
SalesTaxCodeSales tax code linked to the account. | StringTaxCode | No | Yes | MainAccountLegalEntity.TaxCode | |
SalesTaxDirectionWhether the sales tax applies to None, Sales or Purchase. | Enum
| No | Yes | MainAccountLegalEntity.TaxDirection | |
IsExemptYes/No flag showing whether the account is exempt from tax. | EnumNoYesId
| No | Yes | MainAccountLegalEntity.TaxFree | |
SalesTaxGroupSales tax group linked to the account. | StringTaxGroup | No | Yes | MainAccountLegalEntity.TaxGroup | |
ItemSalesTaxGroupItem sales tax group linked to the account. | StringTaxItemGroup | No | Yes | MainAccountLegalEntity.TaxItemGroup | |
ItemSalesTaxGroupHeadingLegalEntityCompany code of the item sales tax group record.low confidence | StringDataAreaId | No | Yes | MainAccountLegalEntity.TaxItemGroupHeadingDataAreaId | |
TaxTableLegalEntityCompany code of the sales tax record.low confidence | StringDataAreaId | No | Yes | MainAccountLegalEntity.TaxTableDataAreaId | |
ValidateSalesTaxLevel of sales tax checking: optional, required, or limited to one or several valid options. | Enum
| No | Yes | MainAccountLegalEntity.ValidateTaxCode | |
ActiveFromFirst date on which the dimension code is active. | DateDimensionActiveFrom | No | Yes | DimensionAttrValueLedgerOverride.ActiveFrom | |
ActiveToLast date on which the dimension code is active. | DateDimensionActiveTo | No | Yes | DimensionAttrValueLedgerOverride.ActiveTo | |
IsSuspendedYes/No flag showing whether the dimension code is suspended. | EnumNoYesId
| No | Yes | DimensionAttrValueLedgerOverride.IsSuspended | |
ExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
ReportingExchangeAdjustmentRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
DoNotAllowManualEntryYes/No flag that blocks manual entries on this account. | Enum
| No | Yes | MainAccountLegalEntity.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.