Table

SalesLineDelete

Voided sales order lines

Holds sales order lines that have been voided. Each record is keyed by the lot ID (InventTransId) and links to the voided sales order in SalesTableDelete. It also links to the item, inventory dimensions, project and sales category. It is read by the voided sales order line entity.

Table name
SalesLineDelete
Module
Sales and marketing
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
TransIdIdx
Replacement key
TransIdIdx
Key fields
InventTransId
Model
Foundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
InventTransIdLot ID that identifies the voided order line. It is the key of the table.String (20)
TradeInventTransId
YesInventTransOrigin.InventTransIdSalesVoidedSalesOrderLineEntity
ActivityNumberNumber of the activity linked to the voided line.String (50)
ProjActivityNumber
NosmmActivities.ActivityNumberSalesVoidedSalesOrderLineEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventDimIdIdentifies the inventory dimension combination of the line.String (20)
InventDimId
NoInventDim.inventDimIdNone
ItemIdItem number on the voided line.String (20)
ItemIdSmall
YesInventTable.ItemIdSalesVoidedSalesOrderLineEntity
LineAmountNet amount of the voided line.Real
SalesLineAmount
NoSalesVoidedSalesOrderLineEntity
LineNumPosition of the line in the order.Real
LineNum
NoSalesVoidedSalesOrderLineEntity
NameFree text for the line.String (1000)
ItemFreeTxt
NoSalesVoidedSalesOrderLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjCategoryIdProject category linked to the line.String (30)
ProjCategoryId
NoProjCategory.CategoryIdSalesVoidedSalesOrderLineEntity
ProjIdProject linked to the line.String (20)
ProjId
NoProjTable.ProjIdSalesVoidedSalesOrderLineEntity
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
SalesCategorySales category of the line, pointing to a category record.Int64
SalesCategory
NoEcoResCategory.RecIdNone
SalesIdVoided sales order that the line belonged to.String (20)
SalesIdDelete
NoSalesTableDelete.SalesIdNone
SalesLinePacked container holding the original sales line data.Container
PackedTable
NoNone
SalesLineforeignTradeCategoryPacked container holding the foreign trade data of the line.Container
PackedTable
NoNone
SalesTypeType of the sales order, such as sales order, returned order, journal or subscription.Enum
SalesType (enum)
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 (3)

Relations (8)

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

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many SalesLineDelete records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many SalesLineDelete records → exactly one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Exactly one SalesLineDelete record → exactly one InventTransOrigin record

  • ProjCategory → ProjCategory

    Join on ProjCategoryId = ProjCategory.CategoryId

    Many SalesLineDelete records → zero or one ProjCategory record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many SalesLineDelete records → zero or one ProjTable record

  • SalesCategory → EcoResCategory

    Join on SalesCategory = EcoResCategory.RecId

    Many SalesLineDelete records → zero or one EcoResCategory record

  • SalesTableDelete → SalesTableDelete

    Join on SalesId = SalesTableDelete.SalesId

    Many SalesLineDelete records → zero or one SalesTableDelete record

  • smmActivities → smmActivities

    Join on ActivityNumber = smmActivities.ActivityNumber

    Many SalesLineDelete records → zero or one smmActivities record

Get this data out

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

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

Email sales@drdynamics.co.uk