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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTableSystem record ID of the sales order. | Int64SalesTableRefRecId | Yes | SalesTable.RecId | None |
ParentRecIdSystem record ID of the parent sales line or journal line. | Int64RefRecId | Yes | LedgerJournalTrans.RecIdSalesLine.RecId | None |
LineNumLine number of the entry. | RealLineNum | Yes | RetailInfocodeLineV2Entity | |
TypeType of transaction the entry belongs to, such as header, sales, payment or no sale. | EnumRetailInfocodeTransType (enum) | Yes | RetailInfocodeLineV2Entity | |
TableTypeShows whether the entry relates to a sales order or a quotation. The label is empty. | EnumRetailInfoCodeLineRelatedTableType (enum) | No | RetailInfocodeLineV2Entity | |
AmountAmount recorded with the info code entry. | RealAmount | No | RetailInfocodeLineV2Entity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InfocodeIdInfo code used in the entry. | StringRetailInfocodeId | No | RetailInfocodeTable.infocodeId | RetailInfocodeLineV2Entity |
InformationText information entered for the info code. | String (100)RetailInfocodeInformation | No | RetailInfocodeLineV2Entity | |
InformationAmountAmount linked to the reason code entry. | RealRetailInfocodeAmount | No | RetailInfocodeLineV2Entity | |
InputTypeKind of input the info code asks for, such as date, number, text or subcode list. | EnumRetailInfocodeInputType (enum) | No | RetailInfocodeLineV2Entity | |
ItemTenderID number of the product or tender the entry relates to. | StringRetailInfocodeItemTenderId | No | RetailInfocodeLineV2Entity | |
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 | |
SourceCodeFirst source number linked to the entry. | String (20)RetailSourceCodeEx5 | No | RetailInfocodeLineV2Entity | |
SourceCode2Second source number linked to the entry. | String (20)RetailSourceCodeEx5 | No | RetailInfocodeLineV2Entity | |
SourceCode3Third source number linked to the entry. | String (20)RetailSourceCodeEx5 | No | RetailInfocodeLineV2Entity | |
StatementCodeStatement code of the entry. | String (25)RetailStatementCode | No | RetailInfocodeLineV2Entity | |
SubInfocodeIdSubcode chosen for the info code. | StringRetailInformationSubcodeId | No | RetailInformationSubcodeTable.subcodeId | RetailInfocodeLineV2Entity |
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)
InfocodeLineKeyIdxPrimary indexSalesTable,ParentRecId,LineNum,Type,TableTypeUnique.
ParentRecIdNot unique.
Relations (9)
Each relation joins RetailInfocodeLineV2 to another table on the fields shown.
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdMany RetailInfocodeLineV2 records → exactly one SalesTable record
SalesLine→SalesLineJoin on
ParentRecId = SalesLine.RecIdZero or one RetailInfocodeLineV2 record → exactly one SalesLine record
LedgerJournalTrans→LedgerJournalTransJoin on
ParentRecId = LedgerJournalTrans.RecIdZero or one RetailInfocodeLineV2 record → exactly one LedgerJournalTrans record
HeaderInfocodes→SalesTableJoin on
SalesTable = SalesTable.RecId,ParentRecId = SalesTable.RecId,Type = RetailInfocodeTransType::HeaderCardinality not set in the metadata.
AffiliationInfocodes→SalesTableJoin on
SalesTable = SalesTable.RecId,ParentRecId = SalesTable.RecId,Type = RetailInfocodeTransType::AffiliationCardinality not set in the metadata.
SalesLineInfocodes→SalesLineJoin on
ParentRecId = SalesLine.RecId,Type = RetailInfocodeTransType::SalesCardinality not set in the metadata.
PaymentLineInfocodes→LedgerJournalTransJoin on
ParentRecId = LedgerJournalTrans.RecId,Type = RetailInfocodeTransType::PaymentCardinality not set in the metadata.
RetailInfocodeTable→RetailInfocodeTableJoin on
InfocodeId = RetailInfocodeTable.infocodeIdMany RetailInfocodeLineV2 records → exactly one RetailInfocodeTable record
RetailInformationSubcodeTable→RetailInformationSubcodeTableJoin on
InfocodeId = RetailInformationSubcodeTable.infocodeId,SubInfocodeId = RetailInformationSubcodeTable.subcodeIdMany 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.
RetailInfocodeLineV2Entity· 14 fields from this table
Need help with RetailInfocodeLineV2 in a report, an integration or a migration? Talk to Dr Dynamics.