Table
RetailInfocodeTableSpecific
Info code table assignments
Assigns info codes to specific records, such as customers, items, affiliations or income and expense accounts. The key combines the reference table type, up to three related values and the info code. Each assignment also sets the order and when the code is required.
- Table name
RetailInfocodeTableSpecific- Module
Commerce transactions and orders- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
refTableInfocodeIdx- Replacement key
None- Key fields
refTableId, refRelation, refRelation2, refRelation3, infocodeId- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
refTableIdType of record the info code is assigned to, such as item, customer, tender type, income/expense account or hierarchy. | EnumRetailInfocodeRefTableIdRetailInfocodeRefTableIdBase (enum) | Yes | RetailInfocodeAssociationEntity | |
refRelationFirst related value, such as a customer account, item ID or affiliation name, depending on the reference table. | String (64)RetailInfocodeRefRelation | Yes | CustTable.AccountNumInventTable.ItemIdRetailAffiliation.NameRetailInventTable.itemId | RetailInfocodeAssociationEntity |
refRelation2Second related value, such as an income or expense account number within a store. | String (64)RetailInfocodeRefRelation | No | RetailIncomeExpenseAccountTable.accountNum | RetailInfocodeAssociationEntity |
refRelation3Third related value used to identify the assigned record. Its meaning is not given in the metadata.low confidence | String (64)RetailInfocodeRefRelation | No | RetailInfocodeAssociationEntity | |
infocodeIdInfo code that is assigned. | StringRetailInfocodeIdBase | Yes | RetailInfocode.infocodeId | RetailInfocodeAssociationEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
inputRequiredShows whether an answer is required for this assignment. | EnumRetailInputRequiredNoYes (enum) | No | RetailInfocodeAssociationEntity | |
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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
sequenceNumber that sets the order of the assignments. | IntegerRetailInfocodeTableSpecificSequence | No | RetailInfocodeAssociationEntity | |
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 | |
whenRequiredCondition for when the info code applies: never, always, or only for positive or negative amounts. | EnumRetailNoneAlwaysPositiveNegative (enum) | No | RetailInfocodeAssociationEntity |
Indexes (1)
refTableInfocodeIdxPrimary indexrefTableId,refRelation,refRelation2,refRelation3,infocodeIdUnique, alternate key.
Relations (6)
Each relation joins RetailInfocodeTableSpecific to another table on the fields shown.
CustTable→CustTableJoin on
refTableId = RetailInfocodeRefTableIdBase::RetailCustTable,refRelation = CustTable.AccountNumMany RetailInfocodeTableSpecific records → zero or one CustTable record
InventTable→InventTableJoin on
refTableId = RetailInfocodeRefTableIdBase::InventTable,refRelation = InventTable.ItemIdMany RetailInfocodeTableSpecific records → zero or one InventTable record
RetailAffiliation→RetailAffiliationJoin on
refTableId = RetailInfocodeRefTableIdBase::RetailAffiliation,refRelation = RetailAffiliation.NameMany RetailInfocodeTableSpecific records → zero or one RetailAffiliation record
RetailIncomeExpenseAccountTable→RetailIncomeExpenseAccountTableJoin on
refTableId = RetailInfocodeRefTableIdBase::RetailIncomeExpenseAccountTable,refRelation = RetailIncomeExpenseAccountTable.storeId,refRelation2 = RetailIncomeExpenseAccountTable.accountNumMany RetailInfocodeTableSpecific records → zero or one RetailIncomeExpenseAccountTable record
RetailInfocodeTable→RetailInfocodeJoin on
infocodeId = RetailInfocode.infocodeIdMany RetailInfocodeTableSpecific records → exactly one RetailInfocode record
RetailInventTable→RetailInventTableJoin on
refTableId = RetailInfocodeRefTableIdBase::RetailInventTable,refRelation = RetailInventTable.itemIdMany RetailInfocodeTableSpecific records → zero or one RetailInventTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailInfocodeTableSpecific; use one of them in Power BI, Power Platform or a data management project.
RetailInfocodeAssociationEntity· 8 fields from this table
Need help with RetailInfocodeTableSpecific in a report, an integration or a migration? Talk to Dr Dynamics.