Table

GUPSalesTableInstanceValue

Instance value for sales order

Holds instance values for a sales order or one of its lines. The key is the sales order company, the sales order ID, a line flag and the line number. It links to the sales order, its lines and instance value records.

Table name
GUPSalesTableInstanceValue
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
SalesTableIdx
Key fields
GUPSalesDataAreaId, GUPSalesId, GUPIsSalesLine, GUPLineNum
Model
GlobalUnifiedPricing
Extends
EcoResInstanceValue

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
GUPSalesDataAreaIdCompany (legal entity) of the sales order.String
DataAreaId
YesSalesTable.DataAreaIdGUPSalesOrderAttributeValueEntity
GUPSalesIdID of the sales order, which points to a sales order record.String (20)
SalesIdBase
YesSalesTable.SalesIdGUPSalesOrderAttributeValueEntity
GUPIsSalesLineYes/No flag showing whether the row is for an order line rather than the header.Enum
NoYes (enum)
NoGUPSalesOrderAttributeValueEntity
GUPLineNumLine number of the sales order line.Real
LineNum
NoGUPSalesOrderAttributeValueEntity
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 GUPSalesTableInstanceValue to another table on the fields shown.

  • EcoResInstanceValue → EcoResInstanceValue

    Join on RecId = EcoResInstanceValue.RecId

    Zero or one GUPSalesTableInstanceValue record → exactly one EcoResInstanceValue record

  • SalesTable → SalesTable

    Join on GUPSalesDataAreaId = SalesTable.DataAreaId, GUPSalesId = SalesTable.SalesId

    Many GUPSalesTableInstanceValue records → exactly one SalesTable record

  • SalesLine → SalesLine

    Join on GUPSalesId = SalesLine.SalesId, GUPSalesDataAreaId = SalesLine.DataAreaId, GUPLineNum = SalesLine.LineNum, GUPIsSalesLine = NoYes::Yes

    Zero or one GUPSalesTableInstanceValue record → exactly one SalesLine record

Get this data out

Tables are not exposed directly. These public entities read from GUPSalesTableInstanceValue; use one of them in Power BI, Power Platform or a data management project.

Need help with GUPSalesTableInstanceValue in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk