Table
ExtCodeValueTable
External code value
Holds the values of external codes for specific records, such as a customer, an item or a unit. The key is the reference table ID, the record ID and the code. It links back to the external code definition.
- Table name
ExtCodeValueTable- Module
Procurement and sourcing- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
ExtCodeIdx- Replacement key
None- Key fields
ExtCodeRelationTableId, ExtCodeRelationRecId, ExtCodeId- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ExtCodeRelationTableIdID of the table that the value is set for. | IntegerRefTableId | Yes | EcoResReleasedProductVariantExternalCodeV2EntityEcoResProductNumberIdentifiedReleasedProductVariantExternalCodeEntityEcoResReleasedProductVariantExternalCodeEntityand 1 more | |
ExtCodeRelationRecIdSystem record ID of the record that the value is set for. | Int64RefRecId | Yes | ExtCodeValueTableCDREntity | |
ExtCodeIdIdentifier of the external code that the value belongs to. | StringExtCodeId | Yes | ExtCodeTable.ExtCodeId | EcoResReleasedProductVariantExternalCodeV2EntityEcoResProductNumberIdentifiedReleasedProductVariantExternalCodeEntityEcoResReleasedProductVariantExternalCodeEntityand 1 more |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | ExtCodeValueTableCDREntity | |
ExtCodeSubModuleKind of party the value applies to: none, customer or vendor. | EnumExtCodeSubModule (enum) | No | ExtCodeValueTableCDREntity | |
ExtCodeTableTableIdID of the table that the external code definition was created for. It is used to join to the code definition. | IntegerRefTableId | Yes | ExtCodeTable.ExtCodeTableId | EcoResReleasedProductVariantExternalCodeV2EntityEcoResProductNumberIdentifiedReleasedProductVariantExternalCodeEntityEcoResReleasedProductVariantExternalCodeEntityand 1 more |
ExtCodeValueValue of the external code for the linked record. | String (50)ExtCodeValue | Yes | EcoResReleasedProductVariantExternalCodeV2EntityEcoResProductNumberIdentifiedReleasedProductVariantExternalCodeEntityEcoResReleasedProductVariantExternalCodeEntityand 1 more | |
ExtCodeValueAliasAlternative name for the value. | String (50)ExtCodeValueAlias | No | ExtCodeValueTableCDREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | ExtCodeValueTableCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
ExtCodeValueIdxExtCodeTableTableId,ExtCodeSubModule,ExtCodeId,ExtCodeValueAliasUnique, alternate key.
ExtCodeIdxPrimary indexExtCodeRelationTableId,ExtCodeRelationRecId,ExtCodeIdUnique, alternate key.
Relations (17)
Each relation joins ExtCodeValueTable to another table on the fields shown.
AgreementClassification→AgreementClassificationJoin on
ExtCodeRelationTableId = AgreementClassification.TableId,ExtCodeRelationRecId = AgreementClassification.RecIdMany ExtCodeValueTable records → zero or one AgreementClassification record
Currency→CurrencyJoin on
ExtCodeRelationTableId = Currency.TableId,ExtCodeRelationRecId = Currency.RecIdMany ExtCodeValueTable records → zero or one Currency record
CustTable→CustTableJoin on
ExtCodeRelationTableId = CustTable.TableId,ExtCodeRelationRecId = CustTable.RecIdMany ExtCodeValueTable records → zero or one CustTable record
DlvMode→DlvModeJoin on
ExtCodeRelationTableId = DlvMode.TableId,ExtCodeRelationRecId = DlvMode.RecIdMany ExtCodeValueTable records → zero or one DlvMode record
DlvTerm→DlvTermJoin on
ExtCodeRelationTableId = DlvTerm.TableId,ExtCodeRelationRecId = DlvTerm.RecIdMany ExtCodeValueTable records → zero or one DlvTerm record
ExtCodeTable→ExtCodeTableJoin on
ExtCodeTableTableId = ExtCodeTable.ExtCodeTableId,ExtCodeId = ExtCodeTable.ExtCodeIdMany ExtCodeValueTable records → exactly one ExtCodeTable record
InventDimCombination→InventDimCombinationJoin on
ExtCodeRelationTableId = InventDimCombination.TableId,ExtCodeRelationRecId = InventDimCombination.RecIdMany ExtCodeValueTable records → zero or one InventDimCombination record
InventTable→InventTableJoin on
ExtCodeRelationTableId = InventTable.TableId,ExtCodeRelationRecId = InventTable.RecIdMany ExtCodeValueTable records → zero or one InventTable record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
ExtCodeRelationTableId = LogisticsAddressCountryRegion.TableId,ExtCodeRelationRecId = LogisticsAddressCountryRegion.RecIdMany ExtCodeValueTable records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCounty→LogisticsAddressCountyJoin on
ExtCodeRelationTableId = LogisticsAddressCounty.TableId,ExtCodeRelationRecId = LogisticsAddressCounty.RecIdMany ExtCodeValueTable records → zero or one LogisticsAddressCounty record
LogisticsAddressState→LogisticsAddressStateJoin on
ExtCodeRelationTableId = LogisticsAddressState.TableId,ExtCodeRelationRecId = LogisticsAddressState.RecIdMany ExtCodeValueTable records → zero or one LogisticsAddressState record
LogisticsAddressZipCode→LogisticsAddressZipCodeJoin on
ExtCodeRelationTableId = LogisticsAddressZipCode.TableId,ExtCodeRelationRecId = LogisticsAddressZipCode.RecIdMany ExtCodeValueTable records → zero or one LogisticsAddressZipCode record
MarkupTable→MarkupTableJoin on
ExtCodeRelationTableId = MarkupTable.TableId,ExtCodeRelationRecId = MarkupTable.RecIdMany ExtCodeValueTable records → zero or one MarkupTable record
UnitOfMeasure→UnitOfMeasureJoin on
ExtCodeRelationTableId = UnitOfMeasure.TableId,ExtCodeRelationRecId = UnitOfMeasure.RecIdMany ExtCodeValueTable records → zero or one UnitOfMeasure record
VendTable→VendTableJoin on
ExtCodeRelationTableId = VendTable.TableId,ExtCodeRelationRecId = VendTable.RecIdMany ExtCodeValueTable records → zero or one VendTable record
TaxTable→TaxTableJoin on
ExtCodeRelationRecId = TaxTable.RecId,ExtCodeRelationTableId = TaxTable.TableIdMany ExtCodeValueTable records → zero or one TaxTable record
TaxExemptCodeTable→TaxExemptCodeTableJoin on
ExtCodeRelationRecId = TaxExemptCodeTable.RecId,ExtCodeRelationTableId = TaxExemptCodeTable.TableIdMany ExtCodeValueTable records → zero or one TaxExemptCodeTable record
Get this data out
Tables are not exposed directly. These public entities read from ExtCodeValueTable; use one of them in Power BI, Power Platform or a data management project.
EcoResReleasedProductVariantExternalCodeV2Entity· 4 fields from this tableEcoResProductNumberIdentifiedReleasedProductVariantExternalCodeEntity· 4 fields from this tableEcoResReleasedProductVariantExternalCodeEntity· 4 fields from this tableExtCodeValueTableCDREntity· 9 fields from this table
Need help with ExtCodeValueTable in a report, an integration or a migration? Talk to Dr Dynamics.