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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesIdID of the voided sales order. It is the key of the table.String (20)
SalesIdDelete
YesSalesTable.SalesIdSalesVoidedSalesOrderHeaderEntitySalesVoidedSalesOrderLineEntity
CancelledShows whether the order is not voided, has voided lines, or is fully voided.Enum
SalesCancelled
Voided (enum)
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustAccountCustomer account of the voided order.String (20)
CustAccount
YesCustTable.AccountNumSalesVoidedSalesOrderHeaderEntitySalesVoidedSalesOrderLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InvoiceAccountCustomer account that would be invoiced.String (20)
CustInvoiceAccount
YesCustTable.AccountNumSalesVoidedSalesOrderHeaderEntitySalesVoidedSalesOrderLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjIdProject linked to the order.String (20)
ProjId
NoProjTable.ProjIdSalesVoidedSalesOrderHeaderEntity
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
SalesNameName on the sales order.String (60)
SalesName
NoSalesVoidedSalesOrderHeaderEntity
SalesTableContainer that holds the packed data of the original sales order.Container
PackedTable
NoNone
SalesTypeType of order, such as sales order, returned order, subscription or customer prepayment.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 (4)

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

  • InvoiceCustomer → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many SalesTableDelete records → exactly one CustTable record

  • OrderCustomer → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many SalesTableDelete records → exactly one CustTable record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many SalesTableDelete records → zero or one ProjTable record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

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

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

Email sales@drdynamics.co.uk