Table
RetailSalesAgreementSalesTrans
Sales agreement transaction
Links a retail sales transaction line to a sales agreement line. The key is channel, store, register, transaction number and line number. It points to the agreement line, the channel and the sales transaction line.
- Table name
RetailSalesAgreementSalesTrans- Module
Commerce transactions and orders- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
transactionLineIdx- Replacement key
transactionLineIdx- Key fields
Channel, Store, Terminal, TransactionId, LineNum- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelPoints to the retail channel of the sales transaction. | Int64RefRecId | No | RetailChannelTable.RecId | RetailSalesAgreementSalesTransEntity |
StoreNumber of the store where the transaction took place. Part of the key to the sales transaction line. | StringRetailStoreId | No | RetailTransactionSalesTrans.store | RetailSalesAgreementSalesTransEntity |
TerminalNumber of the register where the transaction took place. Part of the key to the sales transaction line. | StringRetailTerminalId | No | RetailTransactionSalesTrans.terminalId | RetailSalesAgreementSalesTransEntity |
TransactionIdNumber that identifies the retail transaction. Part of the key to the sales transaction line. | String (44)RetailTransactionId | No | RetailTransactionSalesTrans.transactionId | RetailSalesAgreementSalesTransEntity |
LineNumLine number within the retail transaction. | RealLineNum | No | RetailTransactionSalesTrans.lineNum | RetailSalesAgreementSalesTransEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
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 | |
ReplicationCounterFromOriginCounter value used for replication of the record from its origin. | IntegerRetailReplicationCounter | No | None | |
SalesAgreementLineRecordIdPoints to the sales agreement line linked to this transaction line. | Int64RefRecId | No | AgreementLine.RecId | RetailSalesAgreementSalesTransEntity |
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 (3)
transactionLineIdxPrimary indexReplacement keyChannel,Store,Terminal,TransactionId,LineNumUnique, alternate key.
ChannelIdxNot unique.
SalesAgreementLineInxNot unique.
Relations (3)
Each relation joins RetailSalesAgreementSalesTrans to another table on the fields shown.
RetailTransactionSalesTrans→RetailTransactionSalesTransJoin on
Channel = RetailTransactionSalesTrans.Channel,Store = RetailTransactionSalesTrans.store,Terminal = RetailTransactionSalesTrans.terminalId,TransactionId = RetailTransactionSalesTrans.transactionId,LineNum = RetailTransactionSalesTrans.lineNum,DataAreaId = RetailTransactionSalesTrans.DataAreaIdZero or one RetailSalesAgreementSalesTrans record → zero or one RetailTransactionSalesTrans record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailSalesAgreementSalesTrans records → zero or one RetailChannelTable record
SalesAgreementLine→AgreementLineJoin on
SalesAgreementLineRecordId = AgreementLine.RecIdMany RetailSalesAgreementSalesTrans records → zero or one AgreementLine record
Get this data out
Tables are not exposed directly. These public entities read from RetailSalesAgreementSalesTrans; use one of them in Power BI, Power Platform or a data management project.
RetailSalesAgreementSalesTransEntity· 6 fields from this table
Need help with RetailSalesAgreementSalesTrans in a report, an integration or a migration? Talk to Dr Dynamics.