Data entity
OMLegalEntity
Holds legal entities (companies), keyed by LegalEntityId. It combines company details with the party record and the primary postal address. It also holds contact details such as email, phone and fax. Data can be imported and exported through data management.
- Entity name
OMLegalEntity- Public entity name
LegalEntity- OData collection
LegalEntities- Category
Not set- Module
GAB- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
LegalEntityId- Staging table
OMLegalStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/LegalEntities- Dataverse virtual table
mserp_omlegalentity. 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
DirPartyBaseEntity· rootCompanyInfo· InnerJoin toDirPartyBaseEntityDataArea· OuterJoin toCompanyInfo· read-onlyLogisticsPostalAddressBaseEntity· OuterJoin toDirPartyBaseEntity
Fields (101)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
NameFull name of the party. | String (160)DirPartyName | No | Yes | DirPartyTable.Name | |
NameAliasShort search name for finding the party (up to 20 characters). | String (20)NameAlias | No | Yes | DirPartyTable.NameAlias | |
PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | Yes | DirPartyTable.PartyNumber | |
AddressBooksText listing the address books that the party is in. | String (1000)DirAddressBookNames | No | Yes | DirPartyTable.AddressBookNames | |
LanguageIdPoints to the language of the party. | String (7)LanguageId | No | Yes | LanguageTable.LanguageId | DirPartyTable.LanguageId |
FullPrimaryAddressDelivery address built as one text string.low confidence | String (250) | No | Yes | None | |
AddressDescriptionName or description of the location. | String (60)LogisticsDescription | No | Yes | LogisticsLocation.Description | |
AddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
AddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
AddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
AddressCountryRegionISOCodeISO code of the country or region of the address. | String (2)LogisticsAddressCountryRegionISOCode | No | Yes | None | |
AddressCountyCounty code of the address. It depends on the country and state. | String (30)LogisticsAddressCountyId | No | Yes | LogisticsAddressCounty.CountyId | LogisticsPostalAddress.County |
AddressDistrictNameName of the district, as text. | String (60)LogisticsAddressDistrictName | No | Yes | LogisticsPostalAddress.DistrictName | |
AddressLatitudeGeographic latitude of the address. | RealLogisticsAddressLatitude | No | Yes | LogisticsPostalAddress.Latitude | |
AddressLocationRolesText listing the purposes of the postal address. | String (1000)DirPartyAddressLocationRoleNames | No | Yes | DirPartyLocation.PostalAddressRoles | |
AddressLongitudeGeographic longitude of the address. | RealLogisticsAddressLongitude | No | Yes | LogisticsPostalAddress.Longitude | |
AddressStateState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.StateId | LogisticsPostalAddress.State |
AddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
AddressTimeZoneTime zone of the address. | Enum
| No | Yes | LogisticsPostalAddress.TimeZone | |
AddressValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | Yes | LogisticsPostalAddress.ValidFrom | |
AddressValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | Yes | LogisticsPostalAddress.ValidTo | |
PrimaryContactEmailThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactEmailDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactEmailIsIMYes/no flag that marks the contact as instant message. | EnumLogisticsIsInstantMessage
| No | Yes | LogisticsElectronicAddress.IsInstantMessage | |
PrimaryContactEmailPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactFaxThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactFaxDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactFaxExtensionExtension number to add to the phone number. | StringPhoneLocal | No | Yes | LogisticsElectronicAddress.LocatorExtension | |
PrimaryContactFaxPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactPhoneThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactPhoneDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactPhoneExtensionExtension number to add to the phone number. | StringPhoneLocal | No | Yes | LogisticsElectronicAddress.LocatorExtension | |
PrimaryContactPhoneIsMobileYes/no flag that marks the contact as a mobile phone. | EnumLogisticsIsMobilePhone
| No | Yes | LogisticsElectronicAddress.IsMobilePhone | |
PrimaryContactPhonePurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactTelexThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactTelexDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactTelexPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactURLThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactURLDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactURLPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactFacebookThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactFacebookDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactFacebookIsPrivateYes/no flag that marks the contact as private. | EnumLogisticsIsPrivate
| No | Yes | LogisticsElectronicAddress.IsPrivate | |
PrimaryContactFacebookPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactLinkedInThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactLinkedInDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactLinkedInIsPrivateYes/no flag that marks the contact as private. | EnumLogisticsIsPrivate
| No | Yes | LogisticsElectronicAddress.IsPrivate | |
PrimaryContactLinkedInPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
PrimaryContactTwitterThe contact number or address itself, such as a phone number or email address. | String (255)LogisticsElectronicAddressLocator | No | Yes | LogisticsElectronicAddress.Locator | |
PrimaryContactTwitterDescriptionShort description of the contact detail. | String (60)Description | No | Yes | LogisticsElectronicAddress.Description | |
PrimaryContactTwitterIsPrivateYes/no flag that marks the contact as private. | EnumLogisticsIsPrivate
| No | Yes | LogisticsElectronicAddress.IsPrivate | |
PrimaryContactTwitterPurposeText listing the purposes of the contact detail. | String (1000)DirPartyContactLocationRoleNames | No | Yes | LogisticsElectronicAddress.ElectronicAddressRoles | |
LegalEntityIdCompany ID of the legal entity. It is the key. | StringSelectableDataArea | No | Yes | CompanyInfo.DataArea | |
PartyTypeRecord type of the party, such as person or organization. | String (13)DirPartyInstanceRelationTypeName | No | No (private) | None | |
PhoneticNamePhonetic spelling of the organization name. | String (160)DirPartyName | No | Yes | DirOrganizationBase.PhoneticName | |
AccountingPersonnelName of the accounting staff member; used for Japan. | String (60)AccountingPersonnel_JP | No | Yes | CompanyInfo.AccountingPersonnel_JP | |
CompanyRepresentativeName of the company representative; used for Japan. | String (60)CompanyRepresentative_JP | No | Yes | CompanyInfo.CompanyRepresentative_JP | |
StartDateOfBusinessDate the business started; used for Japan. | DateAssetBusinessCommencedDate_JP | No | Yes | CompanyInfo.BusinessCommencedDate_JP | |
InitialCapitalInvestmentInitial capital invested in the business; used for Japan. | RealAssetBusinessInitialCapital_JP | No | Yes | CompanyInfo.BusinessInitialCapital_JP | |
BusinessItemBusiness item of the company; used for Japan. | String (30)AssetBusinessItem_JP | No | Yes | CompanyInfo.BusinessItem_JP | |
CertifiedTaxAccountantNameName of the certified tax accountant; used for Japan. | String (60)AssetCertifiedTaxAccountant_JP | No | Yes | CompanyInfo.CertifiedTaxAccountant_JP | |
ExternalLegalRepresentativeNameName of the external legal representative; used for Japan. | String (60)AssetLegalRepresentative_JP | No | Yes | CompanyInfo.LegalRepresentative_JP | |
PersonInChargeContact person for the company; used for Japan. | String (60)AssetPersonInCharge_JP | No | Yes | CompanyInfo.PersonInCharge_JP | |
AccountsOfficeReferenceNumberReference number of the accounts office. | String (13)AccountOfficeRefNum | No | Yes | CompanyInfo.AccountOfficeRefNum | |
CommerceRegistrationCommerce registration number; used for France. | String (30)CompanyRegComFR | No | Yes | CompanyInfo.CompanyRegComFR | |
LegalFormLegal form of the company; used for France. | String (100)CompanyLegalFormFR | No | Yes | CompanyInfo.LegalFormFR | |
DNBRoutingNumberDNB routing number for payments. | String (8)PaymRoutingDNB | No | Yes | CompanyInfo.PaymRoutingDNB | |
TraderNumberTrader number used for payments. | String (4)PaymTraderNumber | No | Yes | CompanyInfo.PaymTraderNumber | |
FICreditorIDFI creditor ID; used for Denmark. | String (8)FICreditorID_DK | No | Yes | CompanyInfo.FICreditorID_DK | |
NationalRegistryNumberNational registry number of the company. | StringOrgId | No | Yes | CompanyInfo.OrgId | |
PrintCorrectiveInvoiceYes or No: whether a corrective invoice label prints on sales credit notes; used for Germany. | EnumPrintCorrInvoiceLabel_DE
| No | Yes | CompanyInfo.PrintCorrInvoiceLabel_DE | |
PrintCorrectiveInvoiceStartingDateStarting date for the corrective invoice label; used for Germany. | DatePrintCorrInvoiceLabelEffDate_DE | No | Yes | CompanyInfo.PrintCorrInvoiceLabelEffDate_DE | |
CompanyTypeType of company, such as legal entity or foreign company; used for Mexico. | Enum
| No | Yes | CompanyInfo.CompanyType_MX | |
CurpNumberCURP number of the company; used for Mexico. | String (18)Curp_MX | No | Yes | CompanyInfo.Curp_MX | |
CurpLegalRepresentativeCURP number of the legal representative; used for Mexico. | String (18)Curp_MX | No | Yes | CompanyInfo.LegalRepresentativeCurp_MX | |
LegalRepresentativeNameName of the legal representative; used for Mexico. | String (50)LegalRepresentativeName_MX | No | Yes | CompanyInfo.LegalRepresentativeName_MX | |
RfcLegalRepresentativeRFC number of the legal representative; used for Mexico. | String (13)Rfc_MX | No | Yes | CompanyInfo.LegalRepresentativeRfc_MX | |
RfcRFC number of the company; used for Mexico. | String (13)Rfc_MX | No | Yes | CompanyInfo.Rfc_MX | |
StateInscriptionState inscription number; used for Mexico. | String (30)StateInscription_MX | No | Yes | CompanyInfo.StateInscription_MX | |
NationalClassificationOfCompanyEconomicActivityCNAE economic activity code; used for Brazil. | StringCNAE_BR | No | Yes | CompanyInfo.CNAE_BR | |
PrimaryAddressLocationIdUnique ID of the location. It is the key of the table. | String (40)LogisticsLocationId | No | Yes | LogisticsLocation.LocationId | |
RegistrationNumberBusiness registration number; used for Canada. | String (9)BusinessNumber_CA | No | Yes | CompanyInfo.BusinessNumber_CA | |
SoftwareIdentificationCodeSoftware identification code; used for Canada. | String (8)SoftwareIdentificationCode_CA | No | Yes | CompanyInfo.SoftwareIdentificationCode_CA | |
FiscalCodeFiscal code of the company; used for Italy. | String (11)IVACode | No | Yes | CompanyInfo.FiscalCode_IT | |
LegalNatureLegal nature of the company, such as a limited liability company or a cooperative; used for Italy. | Enum
| No | Yes | CompanyInfo.LegalNature_IT | |
CUCCUC code of the company; used for Italy. | String (8)CUC_IT | No | Yes | CompanyInfo.CUC_IT | |
CompanyNameCompany name used for an alien (foreign) corporation.low confidence | String (60)CompanyName | No | Yes | CompanyInfo.RAlienCorpName | |
CompanyCountryCountry or region linked to the company's alternative name.low confidence | StringAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | CompanyInfo.RAlienCorpCountry |
ReportFolderFolder path where report templates are kept. | String (259)FilePath | No | Yes | CompanyInfo.TemplateFolder_W | |
PrintINNKPPInAddressYes or No: whether INN and KPP numbers print in the company address; used for Russia. | EnumPrintINNKPPInAddress_RU
| No | Yes | CompanyInfo.PrintINNKPPInAddress_RU | |
PrintEnterpriseRegisterYes or No: whether the Foretaksregisteret text prints on sales documents; used for Norway. | Enum
| No | Yes | CompanyInfo.PrintEnterpriseregister_NO | |
NAICSNAICS industry classification code. | String (6)DirNaicsCode | No | Yes | CompanyInfo.NAICS | |
UseForFinancialConsolidationProcessYes or No: whether the company is used in financial consolidation. | Enum
| No | Yes | CompanyInfo.IsConsolidationCompany | |
UseForFinancialEliminationProcessYes or No: whether the company is used in financial elimination. | Enum
| No | Yes | CompanyInfo.IsEliminationCompany | |
TimeZoneThe time zone chosen for the legal entity, stored as one value from a fixed list. | Enum
| No | Yes | computed | |
VATNumVAT exemption number used for exports. | String (20)VATNum | No | Yes | CompanyInfo.VATNum | |
ImportVATNumVAT exemption number used for imports. | String (20)VATNum | No | Yes | CompanyInfo.ImportVATNum | |
ProfitMarginSchemeYes or No: whether the profit margin scheme applies; used for United Arab Emirates. | EnumNoYesId
| No | Yes | CompanyInfo.ProfitMarginScheme_AE | |
VATRefundYes or No: whether a VAT refund is required; used for United Arab Emirates. | EnumNoYesId
| No | Yes | CompanyInfo.VATRefund_AE | |
VATOnCustomerBehalfYes or No: whether VAT is handled on behalf of the customer; used for United Arab Emirates. | EnumNoYesId
| No | Yes | CompanyInfo.VATOnCustomerBehalf_AE | |
LocalizationCountryRegionCodeCountry or region whose localised functions apply to the company, or detection by company address. | Enum
| No | Yes | CompanyInfo.LocalizationCountryRegionCode |
Foreign keys (5)
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.
LanguageId→LanguageTable.LanguageId(key of LanguageTable)Relation also requires LanguageTable.LabelFile = 1.
Many DirPartyTable records → zero or one LanguageTable record
LanguageTable details: see ConfirmingPOEntity, MainAccountTranslationEntity, RetailCatalogTranslationEntity
AddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
AddressCounty→LogisticsAddressCounty.CountyId(key of LogisticsAddressCounty)Join on all of:
AddressCounty=LogisticsAddressCounty.CountyId,AddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,AddressState=LogisticsAddressCounty.StateIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
AddressState→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
AddressState=LogisticsAddressState.StateId,AddressCountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
CompanyCountry→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many CompanyInfo records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
Need help with OMLegalEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.