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 descriptionType / EDT / enumMandatoryReferencesIn public entities
refTableIdType of record the info code is assigned to, such as item, customer, tender type, income/expense account or hierarchy.Enum
RetailInfocodeRefTableId
RetailInfocodeRefTableIdBase (enum)
YesRetailInfocodeAssociationEntity
refRelationFirst related value, such as a customer account, item ID or affiliation name, depending on the reference table.String (64)
RetailInfocodeRefRelation
YesCustTable.AccountNumInventTable.ItemIdRetailAffiliation.NameRetailInventTable.itemIdRetailInfocodeAssociationEntity
refRelation2Second related value, such as an income or expense account number within a store.String (64)
RetailInfocodeRefRelation
NoRetailIncomeExpenseAccountTable.accountNumRetailInfocodeAssociationEntity
refRelation3Third related value used to identify the assigned record. Its meaning is not given in the metadata.low confidenceString (64)
RetailInfocodeRefRelation
NoRetailInfocodeAssociationEntity
infocodeIdInfo code that is assigned.String
RetailInfocodeIdBase
YesRetailInfocode.infocodeIdRetailInfocodeAssociationEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
inputRequiredShows whether an answer is required for this assignment.Enum
RetailInputRequired
NoYes (enum)
NoRetailInfocodeAssociationEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
sequenceNumber that sets the order of the assignments.Integer
RetailInfocodeTableSpecificSequence
NoRetailInfocodeAssociationEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
whenRequiredCondition for when the info code applies: never, always, or only for positive or negative amounts.Enum
RetailNoneAlwaysPositiveNegative (enum)
NoRetailInfocodeAssociationEntity

Indexes (1)

Relations (6)

Each relation joins RetailInfocodeTableSpecific to another table on the fields shown.

  • CustTable → CustTable

    Join on refTableId = RetailInfocodeRefTableIdBase::RetailCustTable, refRelation = CustTable.AccountNum

    Many RetailInfocodeTableSpecific records → zero or one CustTable record

  • InventTable → InventTable

    Join on refTableId = RetailInfocodeRefTableIdBase::InventTable, refRelation = InventTable.ItemId

    Many RetailInfocodeTableSpecific records → zero or one InventTable record

  • RetailAffiliation → RetailAffiliation

    Join on refTableId = RetailInfocodeRefTableIdBase::RetailAffiliation, refRelation = RetailAffiliation.Name

    Many RetailInfocodeTableSpecific records → zero or one RetailAffiliation record

  • RetailIncomeExpenseAccountTable → RetailIncomeExpenseAccountTable

    Join on refTableId = RetailInfocodeRefTableIdBase::RetailIncomeExpenseAccountTable, refRelation = RetailIncomeExpenseAccountTable.storeId, refRelation2 = RetailIncomeExpenseAccountTable.accountNum

    Many RetailInfocodeTableSpecific records → zero or one RetailIncomeExpenseAccountTable record

  • RetailInfocodeTable → RetailInfocode

    Join on infocodeId = RetailInfocode.infocodeId

    Many RetailInfocodeTableSpecific records → exactly one RetailInfocode record

  • RetailInventTable → RetailInventTable

    Join on refTableId = RetailInfocodeRefTableIdBase::RetailInventTable, refRelation = RetailInventTable.itemId

    Many 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.

Need help with RetailInfocodeTableSpecific in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk