Table

RetailInfocodeLineV2

Retail info code lines V2.

Holds info code entries recorded against sales order headers, sales lines or journal lines. It is a second version of the info code line table and adds a table type that tells sales and quotes apart. The key combines the sales order, parent record, line number, type and table type.

Table name
RetailInfocodeLineV2
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, TableType
Model
Foundation

Fields (22)

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
YesRetailInfocodeLineV2Entity
TypeType of transaction the entry belongs to, such as header, sales, payment or no sale.Enum
RetailInfocodeTransType (enum)
YesRetailInfocodeLineV2Entity
TableTypeShows whether the entry relates to a sales order or a quotation. The label is empty.Enum
RetailInfoCodeLineRelatedTableType (enum)
NoRetailInfocodeLineV2Entity
AmountAmount recorded with the info code entry.Real
Amount
NoRetailInfocodeLineV2Entity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InfocodeIdInfo code used in the entry.String
RetailInfocodeId
NoRetailInfocodeTable.infocodeIdRetailInfocodeLineV2Entity
InformationText information entered for the info code.String (100)
RetailInfocodeInformation
NoRetailInfocodeLineV2Entity
InformationAmountAmount linked to the reason code entry.Real
RetailInfocodeAmount
NoRetailInfocodeLineV2Entity
InputTypeKind of input the info code asks for, such as date, number, text or subcode list.Enum
RetailInfocodeInputType (enum)
NoRetailInfocodeLineV2Entity
ItemTenderID number of the product or tender the entry relates to.String
RetailInfocodeItemTenderId
NoRetailInfocodeLineV2Entity
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
NoRetailInfocodeLineV2Entity
SourceCode2Second source number linked to the entry.String (20)
RetailSourceCodeEx5
NoRetailInfocodeLineV2Entity
SourceCode3Third source number linked to the entry.String (20)
RetailSourceCodeEx5
NoRetailInfocodeLineV2Entity
StatementCodeStatement code of the entry.String (25)
RetailStatementCode
NoRetailInfocodeLineV2Entity
SubInfocodeIdSubcode chosen for the info code.String
RetailInformationSubcodeId
NoRetailInformationSubcodeTable.subcodeIdRetailInfocodeLineV2Entity
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 (2)

Relations (9)

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

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Many RetailInfocodeLineV2 records → exactly one SalesTable record

  • SalesLine → SalesLine

    Join on ParentRecId = SalesLine.RecId

    Zero or one RetailInfocodeLineV2 record → exactly one SalesLine record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on ParentRecId = LedgerJournalTrans.RecId

    Zero or one RetailInfocodeLineV2 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 RetailInfocodeLineV2 records → exactly one RetailInfocodeTable record

  • RetailInformationSubcodeTable → RetailInformationSubcodeTable

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

    Many RetailInfocodeLineV2 records → exactly one RetailInformationSubcodeTable record

Get this data out

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

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

Email sales@drdynamics.co.uk