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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesDataAreaIdCompany of the related sales order.String
DataAreaId
YesSalesTable.dataAreaIdNone
SalesIdID of the sales order.String (20)
SalesIdBase
YesSalesTable.SalesIdNone
HeaderOrLineNumLine number on the sales order that the value belongs to, or a header marker.Real
HeaderOrLineNum
NoNone
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

Each relation joins RetailSalesTableInstanceValue to another table on the fields shown.

  • EcoResInstanceValueSalesTable → EcoResInstanceValue

    Join on RecId = EcoResInstanceValue.RecId

    Zero or one RetailSalesTableInstanceValue record → exactly one EcoResInstanceValue record

  • RetailSalesTableInstanceSalesTable → SalesTable

    Join on SalesDataAreaId = SalesTable.dataAreaId, SalesId = SalesTable.SalesId

    Zero or one RetailSalesTableInstanceValue record → exactly one SalesTable record

  • SalesLine → SalesLine

    Join on SalesId = SalesLine.SalesId, SalesDataAreaId = SalesLine.DataAreaId, HeaderOrLineNum = SalesLine.LineNum

    Many 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.

Email sales@drdynamics.co.uk