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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InventTransIdLot ID that identifies the voided order line. It is the key of the table. | String (20)TradeInventTransId | Yes | InventTransOrigin.InventTransId | SalesVoidedSalesOrderLineEntity |
ActivityNumberNumber of the activity linked to the voided line. | String (50)ProjActivityNumber | No | smmActivities.ActivityNumber | SalesVoidedSalesOrderLineEntity |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventDimIdIdentifies the inventory dimension combination of the line. | String (20)InventDimId | No | InventDim.inventDimId | None |
ItemIdItem number on the voided line. | String (20)ItemIdSmall | Yes | InventTable.ItemId | SalesVoidedSalesOrderLineEntity |
LineAmountNet amount of the voided line. | RealSalesLineAmount | No | SalesVoidedSalesOrderLineEntity | |
LineNumPosition of the line in the order. | RealLineNum | No | SalesVoidedSalesOrderLineEntity | |
NameFree text for the line. | String (1000)ItemFreeTxt | No | SalesVoidedSalesOrderLineEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjCategoryIdProject category linked to the line. | String (30)ProjCategoryId | No | ProjCategory.CategoryId | SalesVoidedSalesOrderLineEntity |
ProjIdProject linked to the line. | String (20)ProjId | No | ProjTable.ProjId | SalesVoidedSalesOrderLineEntity |
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 | |
SalesCategorySales category of the line, pointing to a category record. | Int64SalesCategory | No | EcoResCategory.RecId | None |
SalesIdVoided sales order that the line belonged to. | String (20)SalesIdDelete | No | SalesTableDelete.SalesId | None |
SalesLinePacked container holding the original sales line data. | ContainerPackedTable | No | None | |
SalesLineforeignTradeCategoryPacked container holding the foreign trade data of the line. | ContainerPackedTable | No | None | |
SalesTypeType of the sales order, such as sales order, returned order, journal or subscription. | EnumSalesType (enum) | 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 (3)
Relations (8)
Each relation joins SalesLineDelete to another table on the fields shown.
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany SalesLineDelete records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany SalesLineDelete records → exactly one InventTable record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdExactly one SalesLineDelete record → exactly one InventTransOrigin record
ProjCategory→ProjCategoryJoin on
ProjCategoryId = ProjCategory.CategoryIdMany SalesLineDelete records → zero or one ProjCategory record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany SalesLineDelete records → zero or one ProjTable record
SalesCategory→EcoResCategoryJoin on
SalesCategory = EcoResCategory.RecIdMany SalesLineDelete records → zero or one EcoResCategory record
SalesTableDelete→SalesTableDeleteJoin on
SalesId = SalesTableDelete.SalesIdMany SalesLineDelete records → zero or one SalesTableDelete record
smmActivities→smmActivitiesJoin on
ActivityNumber = smmActivities.ActivityNumberMany 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.
SalesVoidedSalesOrderLineEntity· 8 fields from this table
Need help with SalesLineDelete in a report, an integration or a migration? Talk to Dr Dynamics.