Table
SalesTable_W
SalesOrderCountryExt
Holds extra country-specific data for sales orders. It has one record for each sales order, linked by the SalesTable key. It also links to bank accounts, tax registration numbers, withholding tax groups, reason codes and transportation documents. It is used by the sales order header entities.
- Table name
SalesTable_W- Module
Accounts receivable- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
RecId- Replacement key
SalesTable- Key fields
SalesTable- Model
Foundation
Fields (36)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTableSales order this record extends. | Int64RefRecId | No | SalesTable.RecId | SalesTableWBiEntity |
BankAccount_LVPrimary company bank account, used for Latvia. | StringCompanyBankAccountId | No | BankAccountTable.AccountID | SalesTableWBiEntity |
ConsTarget_JPYes/No flag marking the order as a consolidation target, used for Japan. | EnumCustConsTarget_JPNoYes (enum) | No | SalesTableWBiEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreditNoteReasonCodeReason reference for a credit note. | Int64ReasonTableRefRecId | No | ReasonTableRef.RecId | SalesTableWBiEntity |
CurBankAccount_LVCompany bank account for an additional currency, used for Latvia. | StringCompanyBankAccountId | No | BankAccountTable.AccountID | SalesTableWBiEntity |
CustBankAccount_LVCustomer bank account, used for Latvia. | StringCustBankAccountId | No | SalesTableWBiEntity | |
CustomsExportOrder_INYes/No flag marking an export order, used for India. | EnumNoYesIdNoYes (enum) | No | SalesTableWBiEntity | |
CustomsShippingBill_INYes/No flag for a shipping bill, used for India. | EnumNoYesIdNoYes (enum) | No | SalesTableWBiEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ECommerceOperator_INCustomer account of the e-commerce operator, used for India. | String (20)CustAccount | No | SalesTableWBiEntity | |
ECommerceOperatorGSTIN_INGSTIN tax registration of the e-commerce operator, used for India. | Int64RefRecId | No | TaxRegistrationNumbers_IN.RecId | SalesTableWBiEntity |
ECommerceSale_INYes/No flag marking the order as an e-commerce sale, used for India. | EnumNoYesIdNoYes (enum) | No | SalesTableWBiEntity | |
EntryCertificateRequired_WYes/No flag showing whether an entry certificate is required. | EnumEntryCertificateRequired_WNoYes (enum) | No | SalesTableWBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
FiscalDocType_PLDocument to print, invoice or fiscal document, used for Poland. | EnumPlFiscalDocType (enum) | No | SalesTableWBiEntity | |
IntrastatAddValue_LVAdditional value for Intrastat reporting, used for Latvia. | RealLvIntrastatAddValue | No | SalesTableWBiEntity | |
InvoiceType_MYType of invoice, such as GST or self-billed, used for Malaysia. | EnumInvoiceType_MY (enum) | No | SalesTableWBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
IssueOwnEntryCertificate_WYes/No flag for issuing your own entry certificate. | EnumIssueOwnEntryCertificate_WNoYes (enum) | No | SalesTableWBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
MerchantID_INIdentifier of the e-commerce operator (merchant) for the sales order, used for India. | String (60)MerchantID_IN | No | SalesTableWBiEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NatureOfAssessee_INType of assessee, such as company, firm or individual, used for India. | EnumNatureOfAssessee_IN (enum) | No | SalesTableWBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProvisionalAssessment_INYes/No flag showing whether the invoice amount is set by provisional assessment, used for India. | EnumNoYesIdNoYes (enum) | No | SalesTableWBiEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | SalesTableWBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | 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 | |
TaxPeriodPaymentCode_PLVAT report date code, used for Poland. | StringPlTaxPeriodPaymentCode | No | PlTaxDueTable.TaxPeriodPaymentCode | SalesTableWBiEntity |
TCSGroup_INTax collected at source (TCS) withholding group, used for India. | StringTaxWithholdGroup | No | TaxWithholdGroupHeading.TaxWithholdGroup | SalesTableWBiEntity |
TDSGroup_INTax deducted at source (TDS) withholding group, used for India. | StringTaxWithholdGroup | No | TaxWithholdGroupHeading.TaxWithholdGroup | SalesTableWBiEntity |
TransportationDocumentTransportation details record linked to the order. | Int64TransportationDocumentRecId | No | TransportationDocument.RecId | SalesTableWBiEntity |
UnitedVATInvoice_LTYes/No flag for a united VAT invoice, used for Lithuania. | EnumUnitedVATInvoice_LTNoYes (enum) | No | SalesTableWBiEntity | |
WithIGSTPayment_INYes/No flag for supply with tax payment, used for India. | EnumNoYesIdNoYes (enum) | No | SalesTableWBiEntity | |
WouldYouClaimRefund_INYes/No flag showing whether a refund will be claimed, used for India. | EnumNoYesIdNoYes (enum) | No | SalesTableWBiEntity |
Indexes (1)
SalesTableReplacement keyUnique, alternate key.
Relations (9)
Each relation joins SalesTable_W to another table on the fields shown.
BankAccount_LV→BankAccountTableJoin on
BankAccount_LV = BankAccountTable.AccountIDZero or one SalesTable_W record → zero or one BankAccountTable record
CurBankAccount_LV→BankAccountTableJoin on
CurBankAccount_LV = BankAccountTable.AccountIDZero or one SalesTable_W record → zero or one BankAccountTable record
PlTaxDueTable→PlTaxDueTableJoin on
TaxPeriodPaymentCode_PL = PlTaxDueTable.TaxPeriodPaymentCodeMany SalesTable_W records → zero or one PlTaxDueTable record
ReasonTableRef→ReasonTableRefJoin on
CreditNoteReasonCode = ReasonTableRef.RecIdMany SalesTable_W records → zero or one ReasonTableRef record
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdZero or one SalesTable_W record → exactly one SalesTable record
TaxWithholdGroupHeadingTCS_IN→TaxWithholdGroupHeadingJoin on
TCSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroupMany SalesTable_W records → zero or one TaxWithholdGroupHeading record
TaxWithholdGroupHeadingTDS_IN→TaxWithholdGroupHeadingJoin on
TDSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroupMany SalesTable_W records → zero or one TaxWithholdGroupHeading record
TransportationDocument→TransportationDocumentJoin on
TransportationDocument = TransportationDocument.RecIdZero or one SalesTable_W record → zero or one TransportationDocument record
ECommerceOperatorGSTIN→TaxRegistrationNumbers_INJoin on
ECommerceOperatorGSTIN_IN = TaxRegistrationNumbers_IN.RecIdMany SalesTable_W records → zero or one TaxRegistrationNumbers_IN record
Get this data out
Tables are not exposed directly. These public entities read from SalesTable_W; use one of them in Power BI, Power Platform or a data management project.
SalesTableWBiEntity· 27 fields from this tableSalesOrderHeaderV4Entity· 3 fields from this tableSalesOrderHeaderV3Entity· 3 fields from this tableSalesOrderHeaderV2Entity· 3 fields from this tableSalesOrderHeaderEntity· 3 fields from this tableSalesOrderHeaderV2ExistAddrReadOnlyEntity· 3 fields from this tableSalesOrderHeaderV3ExistAddrReadOnlyEntity· 3 fields from this table
Need help with SalesTable_W in a report, an integration or a migration? Talk to Dr Dynamics.