Table

RetailInfocodeLine

Retail info code lines

Holds info code entries recorded against sales order headers, sales lines or journal lines. The key combines the sales order, parent record, line number and transaction type. Each entry stores the info code, any subcode and the information entered.

Table name
RetailInfocodeLine
Module
Commerce transactions and orders
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
InfocodeLineKeyIdx
Replacement key
None
Key fields
SalesTable, ParentRecId, LineNum, Type
Model
Foundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableSystem record ID of the sales order.Int64
SalesTableRefRecId
YesSalesTable.RecIdNone
ParentRecIdSystem record ID of the parent sales line or journal line.Int64
RefRecId
YesLedgerJournalTrans.RecIdSalesLine.RecIdNone
LineNumLine number of the entry.Real
LineNum
YesRetailInfocodeLineEntity
TypeType of transaction the entry belongs to, such as header, sales, payment or no sale.Enum
RetailInfocodeTransType (enum)
YesRetailInfocodeLineEntity
AmountAmount recorded with the info code entry.Real
Amount
NoRetailInfocodeLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InfocodeIdInfo code used in the entry.String
RetailInfocodeId
NoRetailInfocodeTable.infocodeIdRetailInfocodeLineEntity
InformationText information entered for the info code.String (100)
RetailInfocodeInformation
NoRetailInfocodeLineEntity
InformationAmountAmount linked to the reason code entry.Real
RetailInfocodeAmount
NoRetailInfocodeLineEntity
InputTypeKind of input the info code asks for, such as date, number, text or subcode list.Enum
RetailInfocodeInputType (enum)
NoRetailInfocodeLineEntity
ItemTenderID number of the product or tender the entry relates to.String
RetailInfocodeItemTenderId
NoRetailInfocodeLineEntity
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
SourceCodeFirst source number linked to the entry.String (20)
RetailSourceCodeEx5
NoRetailInfocodeLineEntity
SourceCode2Second source number linked to the entry.String (20)
RetailSourceCodeEx5
NoRetailInfocodeLineEntity
SourceCode3Third source number linked to the entry.String (20)
RetailSourceCodeEx5
NoRetailInfocodeLineEntity
StatementCodeStatement code of the entry.String (25)
RetailStatementCode
NoRetailInfocodeLineEntity
SubInfocodeIdSubcode chosen for the info code.String
RetailInformationSubcodeId
NoRetailInformationSubcodeTable.subcodeIdRetailInfocodeLineEntity
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

Indexes (1)

Relations (9)

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

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Many RetailInfocodeLine records → exactly one SalesTable record

  • SalesLine → SalesLine

    Join on ParentRecId = SalesLine.RecId

    Zero or one RetailInfocodeLine record → exactly one SalesLine record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on ParentRecId = LedgerJournalTrans.RecId

    Zero or one RetailInfocodeLine record → exactly one LedgerJournalTrans record

  • HeaderInfocodes → SalesTable

    Join on SalesTable = SalesTable.RecId, ParentRecId = SalesTable.RecId, Type = RetailInfocodeTransType::Header

    Cardinality not set in the metadata.

  • AffiliationInfocodes → SalesTable

    Join on SalesTable = SalesTable.RecId, ParentRecId = SalesTable.RecId, Type = RetailInfocodeTransType::Affiliation

    Cardinality not set in the metadata.

  • SalesLineInfocodes → SalesLine

    Join on ParentRecId = SalesLine.RecId, Type = RetailInfocodeTransType::Sales

    Cardinality not set in the metadata.

  • PaymentLineInfocodes → LedgerJournalTrans

    Join on ParentRecId = LedgerJournalTrans.RecId, Type = RetailInfocodeTransType::Payment

    Cardinality not set in the metadata.

  • RetailInfocodeTable → RetailInfocodeTable

    Join on InfocodeId = RetailInfocodeTable.infocodeId

    Many RetailInfocodeLine records → exactly one RetailInfocodeTable record

  • RetailInformationSubcodeTable → RetailInformationSubcodeTable

    Join on InfocodeId = RetailInformationSubcodeTable.infocodeId, SubInfocodeId = RetailInformationSubcodeTable.subcodeId

    Many RetailInfocodeLine records → exactly one RetailInformationSubcodeTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailInfocodeLine; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk