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 · root
  • CompanyInfo · InnerJoin to DirPartyBaseEntity
  • DataArea · OuterJoin to CompanyInfo · read-only
  • LogisticsPostalAddressBaseEntity · OuterJoin to DirPartyBaseEntity

Fields (101)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
NameFull name of the party.String (160)
DirPartyName
NoYesDirPartyTable.Name
NameAliasShort search name for finding the party (up to 20 characters).String (20)
NameAlias
NoYesDirPartyTable.NameAlias
PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoYesDirPartyTable.PartyNumber
AddressBooksText listing the address books that the party is in.String (1000)
DirAddressBookNames
NoYesDirPartyTable.AddressBookNames
LanguageIdPoints to the language of the party.String (7)
LanguageId
NoYesLanguageTable.LanguageIdDirPartyTable.LanguageId
FullPrimaryAddressDelivery address built as one text string.low confidenceString (250)NoYesNone
AddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
AddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
AddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
AddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
AddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
AddressCountyCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
AddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
AddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
AddressLocationRolesText listing the purposes of the postal address.String (1000)
DirPartyAddressLocationRoleNames
NoYesDirPartyLocation.PostalAddressRoles
AddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
AddressStateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
AddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
AddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
AddressValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoYesLogisticsPostalAddress.ValidFrom
AddressValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoYesLogisticsPostalAddress.ValidTo
PrimaryContactEmailThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactEmailDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactEmailIsIMYes/no flag that marks the contact as instant message.Enum
LogisticsIsInstantMessage
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsElectronicAddress.IsInstantMessage
PrimaryContactEmailPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactFaxThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactFaxDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactFaxExtensionExtension number to add to the phone number.String
PhoneLocal
NoYesLogisticsElectronicAddress.LocatorExtension
PrimaryContactFaxPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactPhoneThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactPhoneDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactPhoneExtensionExtension number to add to the phone number.String
PhoneLocal
NoYesLogisticsElectronicAddress.LocatorExtension
PrimaryContactPhoneIsMobileYes/no flag that marks the contact as a mobile phone.Enum
LogisticsIsMobilePhone
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsElectronicAddress.IsMobilePhone
PrimaryContactPhonePurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactTelexThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactTelexDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactTelexPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactURLThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactURLDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactURLPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactFacebookThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactFacebookDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactFacebookIsPrivateYes/no flag that marks the contact as private.Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsElectronicAddress.IsPrivate
PrimaryContactFacebookPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactLinkedInThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactLinkedInDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactLinkedInIsPrivateYes/no flag that marks the contact as private.Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsElectronicAddress.IsPrivate
PrimaryContactLinkedInPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
PrimaryContactTwitterThe contact number or address itself, such as a phone number or email address.String (255)
LogisticsElectronicAddressLocator
NoYesLogisticsElectronicAddress.Locator
PrimaryContactTwitterDescriptionShort description of the contact detail.String (60)
Description
NoYesLogisticsElectronicAddress.Description
PrimaryContactTwitterIsPrivateYes/no flag that marks the contact as private.Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsElectronicAddress.IsPrivate
PrimaryContactTwitterPurposeText listing the purposes of the contact detail.String (1000)
DirPartyContactLocationRoleNames
NoYesLogisticsElectronicAddress.ElectronicAddressRoles
LegalEntityIdCompany ID of the legal entity. It is the key.String
SelectableDataArea
NoYesCompanyInfo.DataArea
PartyTypeRecord type of the party, such as person or organization.String (13)
DirPartyInstanceRelationTypeName
NoNo (private)None
PhoneticNamePhonetic spelling of the organization name.String (160)
DirPartyName
NoYesDirOrganizationBase.PhoneticName
AccountingPersonnelName of the accounting staff member; used for Japan.String (60)
AccountingPersonnel_JP
NoYesCompanyInfo.AccountingPersonnel_JP
CompanyRepresentativeName of the company representative; used for Japan.String (60)
CompanyRepresentative_JP
NoYesCompanyInfo.CompanyRepresentative_JP
StartDateOfBusinessDate the business started; used for Japan.Date
AssetBusinessCommencedDate_JP
NoYesCompanyInfo.BusinessCommencedDate_JP
InitialCapitalInvestmentInitial capital invested in the business; used for Japan.Real
AssetBusinessInitialCapital_JP
NoYesCompanyInfo.BusinessInitialCapital_JP
BusinessItemBusiness item of the company; used for Japan.String (30)
AssetBusinessItem_JP
NoYesCompanyInfo.BusinessItem_JP
CertifiedTaxAccountantNameName of the certified tax accountant; used for Japan.String (60)
AssetCertifiedTaxAccountant_JP
NoYesCompanyInfo.CertifiedTaxAccountant_JP
ExternalLegalRepresentativeNameName of the external legal representative; used for Japan.String (60)
AssetLegalRepresentative_JP
NoYesCompanyInfo.LegalRepresentative_JP
PersonInChargeContact person for the company; used for Japan.String (60)
AssetPersonInCharge_JP
NoYesCompanyInfo.PersonInCharge_JP
AccountsOfficeReferenceNumberReference number of the accounts office.String (13)
AccountOfficeRefNum
NoYesCompanyInfo.AccountOfficeRefNum
CommerceRegistrationCommerce registration number; used for France.String (30)
CompanyRegComFR
NoYesCompanyInfo.CompanyRegComFR
LegalFormLegal form of the company; used for France.String (100)
CompanyLegalFormFR
NoYesCompanyInfo.LegalFormFR
DNBRoutingNumberDNB routing number for payments.String (8)
PaymRoutingDNB
NoYesCompanyInfo.PaymRoutingDNB
TraderNumberTrader number used for payments.String (4)
PaymTraderNumber
NoYesCompanyInfo.PaymTraderNumber
FICreditorIDFI creditor ID; used for Denmark.String (8)
FICreditorID_DK
NoYesCompanyInfo.FICreditorID_DK
NationalRegistryNumberNational registry number of the company.String
OrgId
NoYesCompanyInfo.OrgId
PrintCorrectiveInvoiceYes or No: whether a corrective invoice label prints on sales credit notes; used for Germany.Enum
PrintCorrInvoiceLabel_DE
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.PrintCorrInvoiceLabel_DE
PrintCorrectiveInvoiceStartingDateStarting date for the corrective invoice label; used for Germany.Date
PrintCorrInvoiceLabelEffDate_DE
NoYesCompanyInfo.PrintCorrInvoiceLabelEffDate_DE
CompanyTypeType of company, such as legal entity or foreign company; used for Mexico.Enum
CompanyType_MX
  • Blank 0
  • LegalEntity 1
  • LegalPerson 2
  • ForeignCompany 3
NoYesCompanyInfo.CompanyType_MX
CurpNumberCURP number of the company; used for Mexico.String (18)
Curp_MX
NoYesCompanyInfo.Curp_MX
CurpLegalRepresentativeCURP number of the legal representative; used for Mexico.String (18)
Curp_MX
NoYesCompanyInfo.LegalRepresentativeCurp_MX
LegalRepresentativeNameName of the legal representative; used for Mexico.String (50)
LegalRepresentativeName_MX
NoYesCompanyInfo.LegalRepresentativeName_MX
RfcLegalRepresentativeRFC number of the legal representative; used for Mexico.String (13)
Rfc_MX
NoYesCompanyInfo.LegalRepresentativeRfc_MX
RfcRFC number of the company; used for Mexico.String (13)
Rfc_MX
NoYesCompanyInfo.Rfc_MX
StateInscriptionState inscription number; used for Mexico.String (30)
StateInscription_MX
NoYesCompanyInfo.StateInscription_MX
NationalClassificationOfCompanyEconomicActivityCNAE economic activity code; used for Brazil.String
CNAE_BR
NoYesCompanyInfo.CNAE_BR
PrimaryAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
RegistrationNumberBusiness registration number; used for Canada.String (9)
BusinessNumber_CA
NoYesCompanyInfo.BusinessNumber_CA
SoftwareIdentificationCodeSoftware identification code; used for Canada.String (8)
SoftwareIdentificationCode_CA
NoYesCompanyInfo.SoftwareIdentificationCode_CA
FiscalCodeFiscal code of the company; used for Italy.String (11)
IVACode
NoYesCompanyInfo.FiscalCode_IT
LegalNatureLegal nature of the company, such as a limited liability company or a cooperative; used for Italy.Enum
LegalNature_IT
  • LN1 1
  • LN2 2
  • LN3 3
  • LN4 4
  • LN5 5
  • LN6 6
  • LN7 7
  • LN8 8
  • LN9 9
  • LN10 10
  • LN11 11
  • LN12 12
  • LN13 13
  • LN14 14
  • LN15 15
  • LN16 16
  • LN17 17
  • LN18 18
  • LN19 19
  • LN20 20
  • LN21 21
  • LN22 22
  • LN23 23
  • LN24 24
  • LN25 25
  • LN26 26
  • LN27 27
  • LN28 28
  • LN29 29
  • LN50 50
  • LN51 51
  • LN52 52
  • LN53 53
  • LN54 54
  • LN55 55
  • LN56 56
  • LN57 57
  • LN58 58
  • LN30 30
  • LN31 31
  • LN32 32
  • LN33 33
  • LN34 34
  • LN35 35
  • LN36 36
  • LN37 37
  • LN38 38
  • LN39 39
  • LN40 40
  • LN41 41
  • LN42 42
  • LN43 43
  • LN44 44
  • LN59 59
NoYesCompanyInfo.LegalNature_IT
CUCCUC code of the company; used for Italy.String (8)
CUC_IT
NoYesCompanyInfo.CUC_IT
CompanyNameCompany name used for an alien (foreign) corporation.low confidenceString (60)
CompanyName
NoYesCompanyInfo.RAlienCorpName
CompanyCountryCountry or region linked to the company's alternative name.low confidenceString
AddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdCompanyInfo.RAlienCorpCountry
ReportFolderFolder path where report templates are kept.String (259)
FilePath
NoYesCompanyInfo.TemplateFolder_W
PrintINNKPPInAddressYes or No: whether INN and KPP numbers print in the company address; used for Russia.Enum
PrintINNKPPInAddress_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.PrintINNKPPInAddress_RU
PrintEnterpriseRegisterYes or No: whether the Foretaksregisteret text prints on sales documents; used for Norway.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.PrintEnterpriseregister_NO
NAICSNAICS industry classification code.String (6)
DirNaicsCode
NoYesCompanyInfo.NAICS
UseForFinancialConsolidationProcessYes or No: whether the company is used in financial consolidation.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.IsConsolidationCompany
UseForFinancialEliminationProcessYes or No: whether the company is used in financial elimination.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.IsEliminationCompany
TimeZoneThe time zone chosen for the legal entity, stored as one value from a fixed list.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYescomputed
VATNumVAT exemption number used for exports.String (20)
VATNum
NoYesCompanyInfo.VATNum
ImportVATNumVAT exemption number used for imports.String (20)
VATNum
NoYesCompanyInfo.ImportVATNum
ProfitMarginSchemeYes or No: whether the profit margin scheme applies; used for United Arab Emirates.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.ProfitMarginScheme_AE
VATRefundYes or No: whether a VAT refund is required; used for United Arab Emirates.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.VATRefund_AE
VATOnCustomerBehalfYes or No: whether VAT is handled on behalf of the customer; used for United Arab Emirates.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesCompanyInfo.VATOnCustomerBehalf_AE
LocalizationCountryRegionCodeCountry or region whose localised functions apply to the company, or detection by company address.Enum
SysLocalizationCountryRegionCode
  • Default 0
  • None 1
  • BE 2
  • BR 3
  • CA 4
  • CZ 5
  • DE 6
  • EE 7
  • ES 8
  • FR 9
  • GB 10
  • HU 11
  • IE 12
  • IN 13
  • IT 14
  • JP 15
  • LT 16
  • LV 17
  • MX 18
  • NL 19
  • NO 20
  • PL 21
  • RU 22
  • SA 23
  • TH 24
  • US 25
  • AU 26
  • CN 27
  • DK 28
  • FI 29
  • MY 30
  • SG 31
  • ZA 32
  • SE 33
  • CH 34
  • IS 35
  • AT 36
  • TR 37
NoYesCompanyInfo.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.

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

Email sales@drdynamics.co.uk