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 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 | RetailInfocodeLineEntity | |
TypeType of transaction the entry belongs to, such as header, sales, payment or no sale. | EnumRetailInfocodeTransType (enum) | Yes | RetailInfocodeLineEntity | |
AmountAmount recorded with the info code entry. | RealAmount | No | RetailInfocodeLineEntity | |
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 | RetailInfocodeLineEntity |
InformationText information entered for the info code. | String (100)RetailInfocodeInformation | No | RetailInfocodeLineEntity | |
InformationAmountAmount linked to the reason code entry. | RealRetailInfocodeAmount | No | RetailInfocodeLineEntity | |
InputTypeKind of input the info code asks for, such as date, number, text or subcode list. | EnumRetailInfocodeInputType (enum) | No | RetailInfocodeLineEntity | |
ItemTenderID number of the product or tender the entry relates to. | StringRetailInfocodeItemTenderId | No | RetailInfocodeLineEntity | |
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 | RetailInfocodeLineEntity | |
SourceCode2Second source number linked to the entry. | String (20)RetailSourceCodeEx5 | No | RetailInfocodeLineEntity | |
SourceCode3Third source number linked to the entry. | String (20)RetailSourceCodeEx5 | No | RetailInfocodeLineEntity | |
StatementCodeStatement code of the entry. | String (25)RetailStatementCode | No | RetailInfocodeLineEntity | |
SubInfocodeIdSubcode chosen for the info code. | StringRetailInformationSubcodeId | No | RetailInformationSubcodeTable.subcodeId | RetailInfocodeLineEntity |
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 (1)
InfocodeLineKeyIdxPrimary indexSalesTable,ParentRecId,LineNum,TypeUnique.
Relations (9)
Each relation joins RetailInfocodeLine to another table on the fields shown.
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdMany RetailInfocodeLine records → exactly one SalesTable record
SalesLine→SalesLineJoin on
ParentRecId = SalesLine.RecIdZero or one RetailInfocodeLine record → exactly one SalesLine record
LedgerJournalTrans→LedgerJournalTransJoin on
ParentRecId = LedgerJournalTrans.RecIdZero or one RetailInfocodeLine 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 RetailInfocodeLine records → exactly one RetailInfocodeTable record
RetailInformationSubcodeTable→RetailInformationSubcodeTableJoin on
InfocodeId = RetailInformationSubcodeTable.infocodeId,SubInfocodeId = RetailInformationSubcodeTable.subcodeIdMany 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.
RetailInfocodeLineEntity· 13 fields from this table
Need help with RetailInfocodeLine in a report, an integration or a migration? Talk to Dr Dynamics.