Table
RetailSalesTableInstanceValue
Instance value for sales order
Links a sales order, or one of its lines, to an instance value record. The key is the company, the sales order ID and a header-or-line number. It connects to SalesTable, SalesLine and EcoResInstanceValue.
- Table name
RetailSalesTableInstanceValue- Module
Commerce transactions and orders- Table group
Main- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
None- Replacement key
SalesTableIdx- Key fields
SalesDataAreaId, SalesId, HeaderOrLineNum- Model
Foundation- Extends
EcoResInstanceValue
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesDataAreaIdCompany of the related sales order. | StringDataAreaId | Yes | SalesTable.dataAreaId | None |
SalesIdID of the sales order. | String (20)SalesIdBase | Yes | SalesTable.SalesId | None |
HeaderOrLineNumLine number on the sales order that the value belongs to, or a header marker. | RealHeaderOrLineNum | No | None | |
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field. | Int64RelationType | 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 | |
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)
SalesTableIdxReplacement keySalesDataAreaId,SalesId,HeaderOrLineNumUnique, alternate key.
Relations (3)
Each relation joins RetailSalesTableInstanceValue to another table on the fields shown.
EcoResInstanceValueSalesTable→EcoResInstanceValueJoin on
RecId = EcoResInstanceValue.RecIdZero or one RetailSalesTableInstanceValue record → exactly one EcoResInstanceValue record
RetailSalesTableInstanceSalesTable→SalesTableJoin on
SalesDataAreaId = SalesTable.dataAreaId,SalesId = SalesTable.SalesIdZero or one RetailSalesTableInstanceValue record → exactly one SalesTable record
SalesLine→SalesLineJoin on
SalesId = SalesLine.SalesId,SalesDataAreaId = SalesLine.DataAreaId,HeaderOrLineNum = SalesLine.LineNumMany RetailSalesTableInstanceValue records → exactly one SalesLine record
Get this data out
No public entity reads from RetailSalesTableInstanceValue. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailSalesTableInstanceValue in a report, an integration or a migration? Talk to Dr Dynamics.