Data entity
RetailSalesAgreementSalesTransEntity
Links retail sales transaction lines to sales agreement lines. Each record is keyed by operating unit party number, store, register, transaction number and transaction line number. It also holds the sales agreement ID and agreement line number.
- Entity name
RetailSalesAgreementSalesTransEntity- Public entity name
SalesAgreementSalesTrans- OData collection
SalesAgreementSalesTrans- Category
Not set- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OMOperatingUnit_PartyNumber, Store, Terminal, TransactionId, TransactionLineNumber- Staging table
RetailSalesAgreementSalesTransStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/SalesAgreementSalesTrans- Dataverse virtual table
mserp_retailsalesagreementsalestransentity. 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
RetailSalesAgreementSalesTrans· rootRetailChannelTable· OuterJoin toRetailSalesAgreementSalesTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailStoreTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableAgreementLine· InnerJoin toRetailSalesAgreementSalesTransSalesAgreementHeader· InnerJoin toAgreementLineAgreementLine_AgreementLineVolumeCommitment(tableAgreementLineVolumeCommitment) · Derived toAgreementLineAgreementLine_AgreementLineQuantityCommitment(tableAgreementLineQuantityCommitment) · Derived toAgreementLine
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ChannelPoints to the retail channel of the sales transaction. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailSalesAgreementSalesTrans.Channel |
StoreNumber of the store where the transaction took place. Part of the key to the sales transaction line. | StringRetailStoreId | No | Yes | RetailSalesAgreementSalesTrans.Store | |
TerminalNumber of the register where the transaction took place. Part of the key to the sales transaction line. | StringRetailTerminalId | No | Yes | RetailSalesAgreementSalesTrans.Terminal | |
TransactionIdNumber that identifies the retail transaction. Part of the key to the sales transaction line. | String (44)RetailTransactionId | No | Yes | RetailSalesAgreementSalesTrans.TransactionId | |
TransactionLineNumberLine number within the retail transaction. | RealLineNum | No | Yes | RetailTransactionSalesTrans.lineNum | RetailSalesAgreementSalesTrans.LineNum |
SalesAgreementLineRecordIdPoints to the sales agreement line linked to this transaction line. | Int64RefRecId | No | No (private) | AgreementLine.RecId | RetailSalesAgreementSalesTrans.SalesAgreementLineRecordId |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
SalesAgreementIdID of the sales agreement. | String (20)SalesAgreementId | Yes | Yes | SalesAgreementHeader.SalesNumberSequence | |
AgreementLineNumberLine number within the agreement. | RealAgreementLineNum_PSN | No | Yes | AgreementLine.LineNumber |
Foreign keys (4)
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.
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailSalesAgreementSalesTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
TransactionLineNumber→RetailTransactionSalesTrans.lineNum(key of RetailTransactionSalesTrans)Join on all of:
TransactionLineNumber=RetailTransactionSalesTrans.lineNum,Channel=RetailTransactionSalesTrans.Channel,Store=RetailTransactionSalesTrans.store,Terminal=RetailTransactionSalesTrans.terminalId,TransactionId=RetailTransactionSalesTrans.transactionIdZero or one RetailSalesAgreementSalesTrans record → zero or one RetailTransactionSalesTrans record
RetailTransactionSalesTrans details: see RetailTransactionSalesLineEntity, RetailTransactionSalesLineV2Entity, RetailTransactionSalesTransBIEntity
SalesAgreementLineRecordId→AgreementLine.RecId(key of AgreementLine)Many RetailSalesAgreementSalesTrans records → zero or one AgreementLine record
AgreementLine details: see CLMIntegrationPurchaseAgreementLineEntity, SalesAgreementLineEntity, PurchPurchaseAgreementLineV2Entity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailSalesAgreementSalesTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.