Table
RetailTransactionInfocodeTrans
Info code transactions
Holds info code entries captured during retail transactions. Each row is identified by channel, store, register, transaction, line, type and info code. The type shows which part of the transaction the entry belongs to, such as the header, a sales line, a payment, an income/expense line or a fiscal transaction.
- Table name
RetailTransactionInfocodeTrans- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
transTypeLineInfocodeIdx- Replacement key
None- Key fields
Channel, store, terminal, transactionId, lineNum, type, infocodeId- Model
Foundation
Fields (35)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
storeNumber of the store where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
terminalNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
transactionIdNumber of the retail transaction that the entry belongs to. | String (44)RetailTransactionId | No | RetailTransactionFiscalTrans.TransactionIdRetailTransactionSalesTrans.transactionIdRetailTransactionTable.transactionId | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
lineNumLine number of the info code entry. | RealLineNum | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
typeKind of transaction line the entry belongs to, such as header, sales, payment, income/expense or fiscal. | EnumRetailInfocodeTransType (enum) | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
infocodeIdNumber of the info code, pointing to the info code record. | StringRetailInfocodeId | No | RetailInfocodeTable.infocodeId | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
amountAmount stored with the info code entry. | RealAmount | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
businessDateDate of the entry. | DateTransDate | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
counterCounter value stored with the entry.low confidence | IntegerRetailCounter | No | RetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionInfocodeTransBIEntity | |
fiscalTransParentGuidGUID of the parent fiscal transaction record, when the entry belongs to one. | GuidSysGuid | No | RetailTransactionFiscalTrans.RecordGuid | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
infoAmountAmount linked to the reason code entry. | RealRetailInfocodeAmount | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
informationText entered or chosen for the info code. | String (100)RetailInfocodeInformation | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
inputTypeKind of input the info code asks for, such as text, date, numeric, product or customer. | EnumRetailInfocodeInputType (enum) | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
itemTenderID number of the item or tender linked to the entry. | StringRetailInfocodeItemTenderId | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | RetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
parentLineNumLine number of the parent line, a fiscal or sales line, that the entry belongs to. | RealLineNum | No | RetailTransactionFiscalTrans.LineNumRetailTransactionSalesTrans.lineNum | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
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 | |
replicatedYes/No flag showing whether the record has been replicated. | EnumRetailReplicatedNoYes (enum) | No | RetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
replicationCounterFromOriginCounter used to track replication of the record from where it was created. | IntegerRetailReplicationCounter | No | RetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
sourceCodeSource number linked to the entry.low confidence | String (20)RetailSourceCodeEx5 | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
sourceCode2Second source number linked to the entry.low confidence | String (20)RetailSourceCodeEx5 | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
sourceCode3Third source number linked to the entry.low confidence | String (20)RetailSourceCodeEx5 | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
staffID of the operator who handled the transaction. | String (25)RetailStaffId | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
statementCodeCode of the statement that the entry is assigned to. | String (25)RetailStatementCode | No | RetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
statementIdNumber of the statement that includes this entry, pointing to the statement record. | String (20)RetailStatementId | No | RetailStatementTable.statementId | RetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
subInfocodeIdNumber of the subcode chosen for the info code. | StringRetailInformationSubcodeId | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
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 | |
transactionStatusStatus of the entry, for example voided, posted, concluded or on hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
transDateDate of the transaction. | DateTransDate | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity | |
transTimeTime of the transaction. | TimeRetailTransTime | No | RetailTransactionInfoCodeLineEntityRetailTransactionInfocodeTransEntityRetailTransactionInfocodeTransBIEntity |
Indexes (5)
transTypeLineInfocodeIdxPrimary indexChannel,store,terminal,transactionId,lineNum,type,infocodeIdUnique, alternate key.
LocationIdxOrigin,replicationCounterFromOriginNot unique.
statementIdxNot unique.
parentLineNumTypeIdxChannel,store,terminal,transactionId,parentLineNum,typeNot unique.
fiscalTransParentGuidIdxChannel,store,terminal,transactionId,parentLineNum,type,fiscalTransParentGuidNot unique.
Relations (10)
Each relation joins RetailTransactionInfocodeTrans to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionInfocodeTrans records → zero or one RetailChannelTable record
RetailInfocodeTable→RetailInfocodeTableJoin on
infocodeId = RetailInfocodeTable.infocodeIdMany RetailTransactionInfocodeTrans records → exactly one RetailInfocodeTable record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany RetailTransactionInfocodeTrans records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
store = RetailStoreTable.StoreNumberMany RetailTransactionInfocodeTrans records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminal = RetailTerminalTable.terminalIdMany RetailTransactionInfocodeTrans records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
transactionId = RetailTransactionTable.transactionId,store = RetailTransactionTable.store,terminal = RetailTransactionTable.terminal,Channel = RetailTransactionTable.ChannelMany RetailTransactionInfocodeTrans records → zero or one RetailTransactionTable record
RetailTransactionIncomeExpenseTrans→RetailTransactionIncomeExpenseTransJoin on
transactionId = RetailTransactionIncomeExpenseTrans.transactionId,store = RetailTransactionIncomeExpenseTrans.store,terminal = RetailTransactionIncomeExpenseTrans.terminalMany RetailTransactionInfocodeTrans records → zero or one RetailTransactionIncomeExpenseTrans record
RetailTransactionPaymentTrans→RetailTransactionPaymentTransJoin on
transactionId = RetailTransactionPaymentTrans.transactionId,store = RetailTransactionPaymentTrans.store,terminal = RetailTransactionPaymentTrans.terminalMany RetailTransactionInfocodeTrans records → zero or one RetailTransactionPaymentTrans record
RetailTransactionSalesTrans→RetailTransactionSalesTransJoin on
Channel = RetailTransactionSalesTrans.Channel,parentLineNum = RetailTransactionSalesTrans.lineNum,transactionId = RetailTransactionSalesTrans.transactionId,store = RetailTransactionSalesTrans.store,terminal = RetailTransactionSalesTrans.terminalIdMany RetailTransactionInfocodeTrans records → zero or one RetailTransactionSalesTrans record
RetailTransactionFiscalTrans→RetailTransactionFiscalTransJoin on
transactionId = RetailTransactionFiscalTrans.TransactionId,store = RetailTransactionFiscalTrans.Store,terminal = RetailTransactionFiscalTrans.Terminal,Channel = RetailTransactionFiscalTrans.Channel,type = RetailInfocodeTransType::Fiscal,parentLineNum = RetailTransactionFiscalTrans.LineNum,fiscalTransParentGuid = RetailTransactionFiscalTrans.RecordGuidMany RetailTransactionInfocodeTrans records → exactly one RetailTransactionFiscalTrans record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionInfocodeTrans; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionInfoCodeLineEntity· 23 fields from this tableRetailTransactionInfocodeTransEntity· 29 fields from this tableRetailTransactionInfocodeTransBIEntity· 30 fields from this table
Need help with RetailTransactionInfocodeTrans in a report, an integration or a migration? Talk to Dr Dynamics.