Sales Header Archive

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5107

Table Type: Company

Table Name: Sales Header Archive
Database Table Name: CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5107

Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how Sales Header Archive can be queried.

Show/hide an example select of all columns

Show/hide an example select of all columns by name

Show/hide an example select of all columns including those from all joined tables

Show/hide columns in Sales Header Archive table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Document Type SearchDocument TypeNormalOption4Document Typeint
Available options are:
  • “Quote”
  • “Order”
  • “Invoice”
  • “Credit Memo”
  • “Blanket Order”
  • “Return Order”
2Sell-to Customer No. Primary Key SearchSell-to Customer No.NormalCode20Sell-to Customer No_nvarchar(40)
Key to join to the Customer table.

Show/hide example query

3No. SearchNo.NormalCode20No_nvarchar(40)
4Bill-to Customer No. Primary Key SearchBill-to Customer No.NormalCode20Bill-to Customer No_nvarchar(40)
Key to join to the Customer table.

Show/hide example query

5Bill-to Name SearchNameNormalText100Bill-to Namenvarchar(200)
Key to join to the Customer table.

Show/hide example query

6Bill-to Name 2 SearchName 2NormalText50Bill-to Name 2nvarchar(100)
7Bill-to Address SearchAddressNormalText100Bill-to Addressnvarchar(200)
8Bill-to Address 2 SearchAddress 2NormalText50Bill-to Address 2nvarchar(100)
9Bill-to City SearchCityNormalText30Bill-to Citynvarchar(60)
Key to join to the Post Code table.

Show/hide example query

10Bill-to Contact SearchContactNormalText100Bill-to Contactnvarchar(200)
11Your Reference SearchYour ReferenceNormalText35Your Referencenvarchar(70)
12Ship-to Code SearchShip-to CodeNormalCode10Ship-to Codenvarchar(20)
Key to join to the Ship-to Address table.

Show/hide example query

13Ship-to Name SearchShip-to NameNormalText100Ship-to Namenvarchar(200)
14Ship-to Name 2 SearchShip-to Name 2NormalText50Ship-to Name 2nvarchar(100)
15Ship-to Address SearchShip-to AddressNormalText100Ship-to Addressnvarchar(200)
16Ship-to Address 2 SearchShip-to Address 2NormalText50Ship-to Address 2nvarchar(100)
17Ship-to City SearchShip-to CityNormalText30Ship-to Citynvarchar(60)
Key to join to the Post Code table.

Show/hide example query

18Ship-to Contact SearchShip-to ContactNormalText100Ship-to Contactnvarchar(200)
19Order Date SearchOrder DateNormalDate4Order Datedatetime
20Posting Date SearchPosting DateNormalDate4Posting Datedatetime
21Shipment Date SearchShipment DateNormalDate4Shipment Datedatetime
22Posting Description SearchPosting DescriptionNormalText100Posting Descriptionnvarchar(200)
23Payment Terms Code SearchPayment Terms CodeNormalCode10Payment Terms Codenvarchar(20)
Key to join to the Payment Terms table.

Show/hide example query

24Due Date SearchDue DateNormalDate4Due Datedatetime
25Payment Discount % SearchPayment Discount %NormalDecimal12Payment Discount _decimal(38,38)
26Pmt. Discount Date SearchPmt. Discount DateNormalDate4Pmt_ Discount Datedatetime
27Shipment Method Code SearchShipment Method CodeNormalCode10Shipment Method Codenvarchar(20)
Key to join to the Shipment Method table.

Show/hide example query

28Location Code SearchLocation CodeNormalCode10Location Codenvarchar(20)
Key to join to the Location table.

Show/hide example query

29Shortcut Dimension 1 Code SearchShortcut Dimension 1 CodeNormalCode20Shortcut Dimension 1 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

30Shortcut Dimension 2 Code SearchShortcut Dimension 2 CodeNormalCode20Shortcut Dimension 2 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

31Customer Posting Group SearchCustomer Posting GroupNormalCode20Customer Posting Groupnvarchar(40)
Key to join to the Customer Posting Group table.

Show/hide example query

32Currency Code SearchCurrency CodeNormalCode10Currency Codenvarchar(20)
Key to join to the Currency table.

Show/hide example query

33Currency Factor SearchCurrency FactorNormalDecimal12Currency Factordecimal(38,38)
34Price Group Code SearchPrice Group CodeNormalCode10Price Group Codenvarchar(20)
Key to join to the Customer Price Group table.

Show/hide example query

35Prices Including VAT SearchPrices Including TaxNormalBoolean4Prices Including VATtinyint
37Invoice Disc. Code SearchInvoice Disc. CodeNormalCode20Invoice Disc_ Codenvarchar(40)
40Cust./Item Disc. Gr. SearchCust./Item Disc. Gr.NormalCode20Cust__Item Disc_ Gr_nvarchar(40)
41Language Code SearchLanguage CodeNormalCode10Language Codenvarchar(20)
Key to join to the Language table.

Show/hide example query

42Format Region SearchFormat RegionNormalText80Format Regionnvarchar(160)
43Salesperson Code SearchSalesperson CodeNormalCode20Salesperson Codenvarchar(40)
Key to join to the Salesperson/Purchaser table.

Show/hide example query

45Order Class SearchOrder ClassNormalCode10Order Classnvarchar(20)
46Comment SearchCommentFlowFieldBoolean4
47No. Printed SearchNo. PrintedNormalInteger4No_ Printedint
51On Hold SearchOn HoldNormalCode3On Holdnvarchar(6)
52Applies-to Doc. Type SearchApplies-to Doc. TypeNormalOption4Applies-to Doc_ Typeint
Available options are:
  • ” “
  • “Payment”
  • “Invoice”
  • “Credit Memo”
  • “Finance Charge Memo”
  • “Reminder”
  • “Refund”
53Applies-to Doc. No. SearchApplies-to Doc. No.NormalCode20Applies-to Doc_ No_nvarchar(40)
55Bal. Account No. SearchBal. Account No.NormalCode20Bal_ Account No_nvarchar(40)
57Ship SearchShipNormalBoolean4Shiptinyint
58Invoice SearchInvoiceNormalBoolean4Invoicetinyint
60Amount SearchAmountFlowFieldDecimal12
61Amount Including VAT SearchAmount Including TaxFlowFieldDecimal12
62Shipping No. SearchShipping No.NormalCode20Shipping No_nvarchar(40)
63Posting No. SearchPosting No.NormalCode20Posting No_nvarchar(40)
64Last Shipping No. SearchLast Shipping No.NormalCode20Last Shipping No_nvarchar(40)
Key to join to the Posted Whse. Shipment Header table.

Show/hide example query

65Last Posting No. SearchLast Posting No.NormalCode20Last Posting No_nvarchar(40)
66Prepayment No. SearchPrepayment No.NormalCode20Prepayment No_nvarchar(40)
67Last Prepayment No. SearchLast Prepayment No.NormalCode20Last Prepayment No_nvarchar(40)
68Prepmt. Cr. Memo No. SearchPrepmt. Cr. Memo No.NormalCode20Prepmt_ Cr_ Memo No_nvarchar(40)
69Last Prepmt. Cr. Memo No. SearchLast Prepmt. Cr. Memo No.NormalCode20Last Prepmt_ Cr_ Memo No_nvarchar(40)
70VAT Registration No. SearchTax Registration No.NormalText20VAT Registration No_nvarchar(40)
71Combine Shipments SearchCombine ShipmentsNormalBoolean4Combine Shipmentstinyint
73Reason Code SearchReason CodeNormalCode10Reason Codenvarchar(20)
Key to join to the Reason Code table.

Show/hide example query

74Gen. Bus. Posting Group SearchGen. Bus. Posting GroupNormalCode20Gen_ Bus_ Posting Groupnvarchar(40)
Key to join to the Gen. Business Posting Group table.

Show/hide example query

75EU 3-Party Trade SearchEU 3-Party TradeNormalBoolean4EU 3-Party Tradetinyint
76Transaction Type SearchTransaction TypeNormalCode10Transaction Typenvarchar(20)
Key to join to the Transaction Type table.

Show/hide example query

77Transport Method SearchTransport MethodNormalCode10Transport Methodnvarchar(20)
Key to join to the Transport Method table.

Show/hide example query

78VAT Country/Region Code SearchTax Country/Region CodeNormalCode10VAT Country_Region Codenvarchar(20)
79Sell-to Customer Name SearchSell-to Customer NameNormalText100Sell-to Customer Namenvarchar(200)
Key to join to the Customer table.

Show/hide example query

80Sell-to Customer Name 2 SearchSell-to Customer Name 2NormalText50Sell-to Customer Name 2nvarchar(100)
81Sell-to Address SearchSell-to AddressNormalText100Sell-to Addressnvarchar(200)
82Sell-to Address 2 SearchSell-to Address 2NormalText50Sell-to Address 2nvarchar(100)
83Sell-to City SearchSell-to CityNormalText30Sell-to Citynvarchar(60)
Key to join to the Post Code table.

Show/hide example query

84Sell-to Contact SearchSell-to ContactNormalText100Sell-to Contactnvarchar(200)
85Bill-to Post Code SearchZIP CodeNormalCode20Bill-to Post Codenvarchar(40)
Key to join to the Post Code table.

Show/hide example query

86Bill-to County SearchStateNormalText30Bill-to Countynvarchar(60)
87Bill-to Country/Region Code SearchCountry/Region CodeNormalCode10Bill-to Country_Region Codenvarchar(20)
88Sell-to Post Code SearchSell-to ZIP CodeNormalCode20Sell-to Post Codenvarchar(40)
Key to join to the Post Code table.

Show/hide example query

89Sell-to County SearchSell-to StateNormalText30Sell-to Countynvarchar(60)
90Sell-to Country/Region Code SearchSell-to Country/Region CodeNormalCode10Sell-to Country_Region Codenvarchar(20)
91Ship-to Post Code SearchShip-to ZIP CodeNormalCode20Ship-to Post Codenvarchar(40)
Key to join to the Post Code table.

Show/hide example query

92Ship-to County SearchShip-to StateNormalText30Ship-to Countynvarchar(60)
93Ship-to Country/Region Code SearchShip-to Country/Region CodeNormalCode10Ship-to Country_Region Codenvarchar(20)
94Bal. Account Type SearchBal. Account TypeNormalOption4Bal_ Account Typeint
Available options are:
  • “G/L Account”
  • “Bank Account”
97Exit Point SearchExit PointNormalCode10Exit Pointnvarchar(20)
Key to join to the Entry/Exit Point table.

Show/hide example query

98Correction SearchCorrectionNormalBoolean4Correctiontinyint
99Document Date SearchDocument DateNormalDate4Document Datedatetime
100External Document No. SearchExternal Document No.NormalCode35External Document No_nvarchar(70)
101Area SearchAreaNormalCode10Areanvarchar(20)
Key to join to the Area table.

Show/hide example query

102Transaction Specification SearchTransaction SpecificationNormalCode10Transaction Specificationnvarchar(20)
Key to join to the Transaction Specification table.

Show/hide example query

104Payment Method Code SearchPayment Method CodeNormalCode10Payment Method Codenvarchar(20)
Key to join to the Payment Method table.

Show/hide example query

105Shipping Agent Code SearchShipping Agent CodeNormalCode10Shipping Agent Codenvarchar(20)
Key to join to the Shipping Agent table.

Show/hide example query

106Package Tracking No. SearchPackage Tracking No.NormalText30Package Tracking No_nvarchar(60)
107No. Series SearchNo. SeriesNormalCode20No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

108Posting No. Series SearchPosting No. SeriesNormalCode20Posting No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

109Shipping No. Series SearchShipping No. SeriesNormalCode20Shipping No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

114Tax Area Code SearchTax Area CodeNormalCode20Tax Area Codenvarchar(40)
Key to join to the Tax Area table.

Show/hide example query

115Tax Liable SearchTax LiableNormalBoolean4Tax Liabletinyint
116VAT Bus. Posting Group SearchVAT Bus. Posting GroupNormalCode20VAT Bus_ Posting Groupnvarchar(40)
Key to join to the VAT Business Posting Group table.

Show/hide example query

117Reserve SearchReserveNormalOption4Reserveint
Available options are:
  • “Never”
  • “Optional”
  • “Always”
118Applies-to ID SearchApplies-to IDNormalCode50Applies-to IDnvarchar(100)
119VAT Base Discount % SearchVAT Base Discount %NormalDecimal12VAT Base Discount _decimal(38,38)
120Status SearchStatusNormalOption4Statusint
Available options are:
  • “Open”
  • “Released”
  • “Pending Approval”
  • “Pending Prepayment”
121Invoice Discount Calculation SearchInvoice Discount CalculationNormalOption4Invoice Discount Calculationint
Available options are:
  • “None”
  • “%”
  • “Amount”
122Invoice Discount Value SearchInvoice Discount ValueNormalDecimal12Invoice Discount Valuedecimal(38,38)
123Send IC Document SearchSend IC DocumentNormalBoolean4Send IC Documenttinyint
124IC Status SearchIC StatusNormalOption4IC Statusint
Available options are:
  • “New”
  • “Pending”
  • “Sent”
125Sell-to IC Partner Code SearchSell-to IC Partner CodeNormalCode20Sell-to IC Partner Codenvarchar(40)
Key to join to the IC Partner table.

Show/hide example query

126Bill-to IC Partner Code SearchIC Partner CodeNormalCode20Bill-to IC Partner Codenvarchar(40)
Key to join to the IC Partner table.

Show/hide example query

127IC Reference Document No. SearchIC Reference Document No.NormalCode20IC Reference Document No_nvarchar(40)
129IC Direction SearchIC DirectionNormalOption4IC Directionint
Available options are:
  • “Outgoing”
  • “Incoming”
130Prepayment % SearchPrepayment %NormalDecimal12Prepayment _decimal(38,38)
131Prepayment No. Series SearchPrepayment No. SeriesNormalCode20Prepayment No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

132Compress Prepayment SearchCompress PrepaymentNormalBoolean4Compress Prepaymenttinyint
133Prepayment Due Date SearchPrepayment Due DateNormalDate4Prepayment Due Datedatetime
134Prepmt. Cr. Memo No. Series SearchPrepmt. Cr. Memo No. SeriesNormalCode20Prepmt_ Cr_ Memo No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

135Prepmt. Posting Description SearchPrepmt. Posting DescriptionNormalText100Prepmt_ Posting Descriptionnvarchar(200)
138Prepmt. Pmt. Discount Date SearchPrepmt. Pmt. Discount DateNormalDate4Prepmt_ Pmt_ Discount Datedatetime
139Prepmt. Payment Terms Code SearchPrepmt. Payment Terms CodeNormalCode10Prepmt_ Payment Terms Codenvarchar(20)
Key to join to the Payment Terms table.

Show/hide example query

140Prepmt. Payment Discount % SearchPrepmt. Payment Discount %NormalDecimal12Prepmt_ Payment Discount _decimal(38,38)
145No. of Archived Versions SearchNo. of Archived VersionsFlowFieldInteger4
151Sales Quote No. SearchSales Quote No.NormalCode20Sales Quote No_nvarchar(40)
152Quote Valid Until Date SearchQuote Valid To DateNormalDate4Quote Valid Until Datedatetime
153Quote Sent to Customer SearchQuote Sent to CustomerNormalDateTime8Quote Sent to Customerdatetime
154Quote Accepted SearchQuote AcceptedNormalBoolean4Quote Acceptedtinyint
155Quote Accepted Date SearchQuote Accepted DateNormalDate4Quote Accepted Datedatetime
163Company Bank Account Code SearchCompany Bank Account CodeNormalCode20Company Bank Account Codenvarchar(40)
171Sell-to Phone No. SearchSell-to Phone No.NormalText30Sell-to Phone No_nvarchar(60)
172Sell-to E-Mail SearchSell-to E-MailNormalText80Sell-to E-Mailnvarchar(160)
179VAT Reporting Date SearchTax DateNormalDate4VAT Reporting Datedatetime
180Rcvd-from Country/Region Code SearchReceived-from Country/Region CodeNormalCode10Rcvd-from Country_Region Codenvarchar(20)
181Rcvd.-from Count./Region Code SearchReceived-from Country/Region CodeNormalCode10Rcvd_-from Count__Region Codenvarchar(20)
200Work Description SearchWork DescriptionNormalBLOB8Work Descriptionimage
480Dimension Set ID SearchDimension Set IDNormalInteger4Dimension Set IDint
Key to join to the Dimension Set Entry table.

Show/hide example query

827Credit Card No. SearchCredit Card No.NormalCode20Credit Card No_nvarchar(40)
3998Source Doc. Exists SearchSource Doc. ExistsFlowFieldBoolean4
3999Last Archived Date SearchLast Archived DateFlowFieldDateTime8
5043Interaction Exist SearchInteraction ExistNormalBoolean4Interaction Existtinyint
5044Time Archived SearchTime ArchivedNormalTime4Time Archiveddatetime
5045Date Archived SearchDate ArchivedNormalDate4Date Archiveddatetime
5046Archived By SearchArchived ByNormalCode50Archived Bynvarchar(100)
Key to join to the User table.

Show/hide example query

5047Version No. SearchVersion No.NormalInteger4Version No_int
5048Doc. No. Occurrence Primary Key SearchDoc. No. OccurrenceNormalInteger4Doc_ No_ Occurrenceint
5050Campaign No. Primary Key SearchCampaign No.NormalCode20Campaign No_nvarchar(40)
Key to join to the Campaign table.

Show/hide example query

5051Sell-to Customer Template Code SearchSell-to Customer Template CodeNormalCode10Sell-to Customer Template Codenvarchar(20)
5052Sell-to Contact No. SearchSell-to Contact No.NormalCode20Sell-to Contact No_nvarchar(40)
Key to join to the Contact table.

Show/hide example query

5053Bill-to Contact No. SearchBill-to Contact No.NormalCode20Bill-to Contact No_nvarchar(40)
Key to join to the Contact table.

Show/hide example query

5054Bill-to Customer Template Code SearchBill-to Customer Template Code (obsoleted)NormalCode10Bill-to Customer Template Codenvarchar(20)
5055Opportunity No. SearchOpportunity No.NormalCode20Opportunity No_nvarchar(40)
Key to join to the Opportunity table.

Show/hide example query

5056Sell-to Customer Templ. Code SearchSell-to Customer Template CodeNormalCode20Sell-to Customer Templ_ Codenvarchar(40)
Key to join to the Customer Templ. table.

Show/hide example query

5057Bill-to Customer Templ. Code SearchBill-to Customer Template CodeNormalCode20Bill-to Customer Templ_ Codenvarchar(40)
Key to join to the Customer Templ. table.

Show/hide example query

5700Responsibility Center SearchResponsibility CenterNormalCode10Responsibility Centernvarchar(20)
Key to join to the Responsibility Center table.

Show/hide example query

5750Shipping Advice SearchShipping AdviceNormalOption4Shipping Adviceint
Available options are:
  • “Partial”
  • “Complete”
5752Completely Shipped SearchCompletely ShippedFlowFieldBoolean4
5753Posting from Whse. Ref. SearchPosting from Whse. Ref.NormalInteger4Posting from Whse_ Ref_int
5754Location Filter SearchLocation FilterFlowFilterCode10
Key to join to the Location table.

Show/hide example query

5790Requested Delivery Date SearchRequested Delivery DateNormalDate4Requested Delivery Datedatetime
5791Promised Delivery Date SearchPromised Delivery DateNormalDate4Promised Delivery Datedatetime
5792Shipping Time SearchShipping TimeNormalDateFormula32Shipping Timevarchar(32)
5793Outbound Whse. Handling Time SearchOutbound Whse. Handling TimeNormalDateFormula32Outbound Whse_ Handling Timevarchar(32)
5794Shipping Agent Service Code SearchShipping Agent Service CodeNormalCode10Shipping Agent Service Codenvarchar(20)
5795Late Order Shipping SearchLate Order ShippingFlowFieldBoolean4
5796Date Filter SearchDate FilterFlowFilterDate4
5800Receive SearchReceiveNormalBoolean4Receivetinyint
5801Return Receipt No. SearchReturn Receipt No.NormalCode20Return Receipt No_nvarchar(40)
5802Return Receipt No. Series SearchReturn Receipt No. SeriesNormalCode20Return Receipt No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

5803Last Return Receipt No. SearchLast Return Receipt No.NormalCode20Last Return Receipt No_nvarchar(40)
7000Price Calculation Method SearchPrice Calculation MethodNormalOption4Price Calculation Methodint
Available options are:
  • ” “
  • “Lowest Price”
7001Allow Line Disc. SearchAllow Line Disc.NormalBoolean4Allow Line Disc_tinyint
7200Get Shipment Used SearchGet Shipment UsedNormalBoolean4Get Shipment Usedtinyint
9000Assigned User ID SearchAssigned User IDNormalCode50Assigned User IDnvarchar(100)
Key to join to the User Setup table.

Show/hide example query

10005Ship-to UPS Zone SearchShip-to UPS ZoneNormalCode2
10009Outstanding Amount ($) SearchOutstanding Amount ($)FlowFieldDecimal12
10015Tax Exemption No. SearchTax Exemption No.NormalText30
10018STE Transaction ID SearchSTE Transaction IDNormalText20
12600Prepmt. Include Tax SearchPrepmt. Include TaxNormalBoolean4
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Sales Header Archive table

Leave a Reply

Your email address will not be published. Required fields are marked *