Data entity

RetailInfocodeLineV2Entity

Holds info code lines in the second version of the structure. It links entries to sales orders, order lines or journal lines. Each line has the info code, subcode, input type, the information entered and an amount. Compared with the first version, the key also includes the info code line table type.

Entity name
RetailInfocodeLineV2Entity
Public entity name
InfocodeLineV2
OData collection
InfocodeLinesV2
Category
Not set
Module
Transactions and orders
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
SalesOrderNumber, InventoryLotId, JournalBatchNumber, JournalLineNumber, InfocodeLineType, LineNumber, InfocodeLineTableType
Staging table
RetailInfocodeLineV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/InfocodeLinesV2
Dataverse virtual table
mserp_retailinfocodelinev2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • RetailInfocodeLineV2 · root
  • SalesTable · InnerJoin to RetailInfocodeLineV2 · read-only
  • SalesLine · OuterJoin to RetailInfocodeLineV2 · read-only
  • LedgerJournalTrans · OuterJoin to RetailInfocodeLineV2 · read-only

Fields (18)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AmountAmount recorded with the info code entry.Real
Amount
NoYesRetailInfocodeLineV2.Amount
InformationAmountAmount linked to the reason code entry.Real
RetailInfocodeAmount
NoYesRetailInfocodeLineV2.InformationAmount
InfocodeIdInfo code used in the entry.String
RetailInfocodeId
NoYesRetailInfocodeTable.infocodeIdRetailInfocodeLineV2.InfocodeId
InformationText information entered for the info code.String (100)
RetailInfocodeInformation
NoYesRetailInfocodeLineV2.Information
InputTypeKind of input the info code asks for, such as date, number, text or subcode list.Enum
RetailInfocodeInputType
  • None 0
  • SubCode 1
  • Date_ 2
  • Numeric 3
  • Item 4
  • Customer 5
  • Staff 6
  • Text 9
  • SubcodeButtons 10
  • AgeLimit 11
NoYesRetailInfocodeLineV2.InputType
ItemTenderID number of the product or tender the entry relates to.String
RetailInfocodeItemTenderId
NoYesRetailInfocodeLineV2.ItemTender
LineNumberLine number of the entry.Real
LineNum
YesYesRetailInfocodeLineV2.LineNum
SourceCodeFirst source number linked to the entry.String (20)
RetailSourceCodeEx5
NoYesRetailInfocodeLineV2.SourceCode
SourceCode2Second source number linked to the entry.String (20)
RetailSourceCodeEx5
NoYesRetailInfocodeLineV2.SourceCode2
SourceCode3Third source number linked to the entry.String (20)
RetailSourceCodeEx5
NoYesRetailInfocodeLineV2.SourceCode3
StatementCodeStatement code of the entry.String (25)
RetailStatementCode
NoYesRetailInfocodeLineV2.StatementCode
SubInfocodeIdSubcode chosen for the info code.String
RetailInformationSubcodeId
NoYesRetailInformationSubcodeTable.subcodeIdRetailInfocodeLineV2.SubInfocodeId
InfocodeLineTypeType of transaction the entry belongs to, such as header, sales, payment or no sale.Enum
RetailInfocodeTransType
  • Header 0
  • Sales 1
  • Payment 2
  • IncomeExpense 3
  • NoSale 4
  • Affiliation 5
  • Fiscal 6
YesYesRetailInfocodeLineV2.Type
SalesOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
YesYesSalesTable.SalesId
InventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions.String (20)
TradeInventTransId
NoYesInventTransOrigin.InventTransIdSalesLine.InventTransId
JournalBatchNumberNumber of the journal batch that the line belongs to.String (20)
LedgerJournalId
NoYesLedgerJournalTable.JournalNumLedgerJournalTrans.JournalNum
JournalLineNumberLine number within the journal.Real
LineNum
NoYesBankPaymentOrderJour_RU.JournalLineNumLedgerJournalTrans.LineNum
InfocodeLineTableTypeShows whether the entry relates to a sales order or a quotation. The label is empty.Enum
RetailInfoCodeLineRelatedTableType
  • Sales 0
  • Quote 1
YesYesRetailInfocodeLineV2.TableType

Foreign keys (5)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

  • InfocodeId → RetailInfocodeTable.infocodeId (key of RetailInfocodeTable)

    Many RetailInfocodeLineV2 records → exactly one RetailInfocodeTable record

    RetailInfocodeTable details: see RetailInfocodeTranslationEntity, RetailInfocodeEntity

  • SubInfocodeId → RetailInformationSubcodeTable.subcodeId (key of RetailInformationSubcodeTable)

    Join on all of: SubInfocodeId = RetailInformationSubcodeTable.subcodeId, InfocodeId = RetailInformationSubcodeTable.infocodeId

    Many RetailInfocodeLineV2 records → exactly one RetailInformationSubcodeTable record

    RetailInformationSubcodeTable details: see RetailInformationSubcodeEntity, RetailInformationSubcodeTranslationEntity

  • InventoryLotId → InventTransOrigin.InventTransId (key of InventTransOrigin)

    Zero or one SalesLine record → zero or one InventTransOrigin record

    InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity

  • JournalBatchNumber → LedgerJournalTable.JournalNum (key of LedgerJournalTable)

    Many LedgerJournalTrans records → exactly one LedgerJournalTable record

    LedgerJournalTable details: see SlipJournalEntity, ExpenseJournalHeaderEntity, VendInvoiceJournalHeaderEntity

  • JournalLineNumber → BankPaymentOrderJour_RU.JournalLineNum (key of BankPaymentOrderJour_RU)

    Join on all of: JournalLineNumber = BankPaymentOrderJour_RU.JournalLineNum, TransDate (table field, not in this entity) = BankPaymentOrderJour_RU.JournalTransDate, AccountType (table field, not in this entity) = BankPaymentOrderJour_RU.LedgerACType, JournalBatchNumber = BankPaymentOrderJour_RU.JournalNum, Voucher (table field, not in this entity) = BankPaymentOrderJour_RU.Voucher

    Many LedgerJournalTrans records → exactly one BankPaymentOrderJour_RU record

    BankPaymentOrderJour_RU details: see BankClientOutPaymentLogEntity

Need help with RetailInfocodeLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk