Table
SalesTableDelete
Voided sales orders
Keeps a record of sales orders that have been voided, keyed by SalesId. It stores the customer, invoice account, project, name and order type, and a packed copy of the original sales order. The Voided field shows if the whole order or only some lines were voided.
- Table name
SalesTableDelete- Module
Sales and marketing- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
SalesIdx- Replacement key
SalesIdx- Key fields
SalesId- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesIdID of the voided sales order. It is the key of the table. | String (20)SalesIdDelete | Yes | SalesTable.SalesId | SalesVoidedSalesOrderHeaderEntitySalesVoidedSalesOrderLineEntity |
CancelledShows whether the order is not voided, has voided lines, or is fully voided. | EnumSalesCancelledVoided (enum) | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustAccountCustomer account of the voided order. | String (20)CustAccount | Yes | CustTable.AccountNum | SalesVoidedSalesOrderHeaderEntitySalesVoidedSalesOrderLineEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InvoiceAccountCustomer account that would be invoiced. | String (20)CustInvoiceAccount | Yes | CustTable.AccountNum | SalesVoidedSalesOrderHeaderEntitySalesVoidedSalesOrderLineEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjIdProject linked to the order. | String (20)ProjId | No | ProjTable.ProjId | SalesVoidedSalesOrderHeaderEntity |
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 | |
SalesNameName on the sales order. | String (60)SalesName | No | SalesVoidedSalesOrderHeaderEntity | |
SalesTableContainer that holds the packed data of the original sales order. | ContainerPackedTable | No | None | |
SalesTypeType of order, such as sales order, returned order, subscription or customer prepayment. | 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)
SalesIdxPrimary indexReplacement keyUnique, alternate key.
CustIdxUnique.
InvoiceAccIdxNot unique.
Relations (4)
Each relation joins SalesTableDelete to another table on the fields shown.
InvoiceCustomer→CustTableJoin on
InvoiceAccount = CustTable.AccountNumMany SalesTableDelete records → exactly one CustTable record
OrderCustomer→CustTableJoin on
CustAccount = CustTable.AccountNumMany SalesTableDelete records → exactly one CustTable record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany SalesTableDelete records → zero or one ProjTable record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdCardinality not set in the metadata.
Get this data out
Tables are not exposed directly. These public entities read from SalesTableDelete; use one of them in Power BI, Power Platform or a data management project.
SalesVoidedSalesOrderHeaderEntity· 5 fields from this tableSalesVoidedSalesOrderLineEntity· 3 fields from this table
Need help with SalesTableDelete in a report, an integration or a migration? Talk to Dr Dynamics.