Sales Order Entity Buffer

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

Table Type: Company

Table Name: Sales Order Entity Buffer
Database Table Name: CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 0

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 Order Entity Buffer can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [timestamp]
   ,[No_]
   ,[Sell-to Customer No_]
   ,[Bill-to Customer No_]
   ,[Bill-to Name]
   ,[Bill-to Address]
   ,[Bill-to Address 2]
   ,[Bill-to City]
   ,[Bill-to Contact]
   ,[Ship-to Code]
   ,[Ship-to Name]
   ,[Ship-to Address]
   ,[Ship-to Address 2]
   ,[Ship-to City]
   ,[Ship-to Contact]
   ,[Posting Date]
   ,[Payment Terms Code]
   ,[Shipment Method Code]
   ,[Shortcut Dimension 1 Code]
   ,[Shortcut Dimension 2 Code]
   ,[Customer Posting Group]
   ,[Currency Code]
   ,[Prices Including VAT]
   ,[Salesperson Code]
   ,[Amount]
   ,[Amount Including VAT]
   ,[Sell-to Customer Name]
   ,[Sell-to Address]
   ,[Sell-to Address 2]
   ,[Sell-to City]
   ,[Sell-to Contact]
   ,[Bill-to Post Code]
   ,[Bill-to County]
   ,[Bill-to Country_Region Code]
   ,[Sell-to Post Code]
   ,[Sell-to County]
   ,[Sell-to Country_Region Code]
   ,[Ship-to Post Code]
   ,[Ship-to County]
   ,[Ship-to Country_Region Code]
   ,[Document Date]
   ,[External Document No_]
   ,[Sell-to Phone No_]
   ,[Sell-to E-Mail]
   ,[Cust_ Ledger Entry No_]
   ,[Invoice Discount Amount]
   ,[Sell-To Contact No_]
   ,[Shipping Advice]
   ,[Completely Shipped]
   ,[Requested Delivery Date]
   ,[Id]
   ,[Total Tax Amount]
   ,[Status]
   ,[Discount Applied Before Tax]
   ,[Last Modified Date Time]
   ,[Customer Id]
   ,[Contact Graph Id]
   ,[Currency Id]
   ,[Payment Terms Id]
   ,[Shipment Method Id]
   ,[Bill-to Customer Id]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [Sales Order Entity Buffer].[Sell-to Customer No_] = [Customer].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [Sales Order Entity Buffer].[Bill-to Customer No_] = [Customer].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
      ON
         [Sales Order Entity Buffer].[Payment Terms Code] = [Payment Terms].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
      ON
         [Sales Order Entity Buffer].[Shipment Method Code] = [Shipment Method].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group]
      ON
         [Sales Order Entity Buffer].[Customer Posting Group] = [Customer Posting Group].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Sales Order Entity Buffer].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson_Purchaser]
      ON
         [Sales Order Entity Buffer].[Salesperson Code] = [Salesperson_Purchaser].[No_]

Show/hide columns in Sales Order Entity Buffer table

Column IDColumn NameData Type
1timestamp Searchtimestamp
2No_ Primary Key Searchnvarchar(40)
3Sell-to Customer No_ Searchnvarchar(40)
Key to join to the Customer table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Sell-to Customer No_]
       ,[Customer].[No_]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
              ON
                     [Sales Order Entity Buffer].[Sell-to Customer No_] = [Customer].[No_]
4Bill-to Customer No_ Searchnvarchar(40)
Key to join to the Customer table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Bill-to Customer No_]
       ,[Customer].[No_]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
              ON
                     [Sales Order Entity Buffer].[Bill-to Customer No_] = [Customer].[No_]
5Bill-to Name Searchnvarchar(200)
6Bill-to Address Searchnvarchar(200)
7Bill-to Address 2 Searchnvarchar(100)
8Bill-to City Searchnvarchar(60)
9Bill-to Contact Searchnvarchar(200)
10Ship-to Code Searchnvarchar(20)
11Ship-to Name Searchnvarchar(200)
12Ship-to Address Searchnvarchar(200)
13Ship-to Address 2 Searchnvarchar(100)
14Ship-to City Searchnvarchar(60)
15Ship-to Contact Searchnvarchar(200)
16Posting Date Searchdatetime
17Payment Terms Code Searchnvarchar(20)
Key to join to the Payment Terms table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Payment Terms Code]
       ,[Payment Terms].[Code]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
              ON
                     [Sales Order Entity Buffer].[Payment Terms Code] = [Payment Terms].[Code]
18Shipment Method Code Searchnvarchar(20)
Key to join to the Shipment Method table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Shipment Method Code]
       ,[Shipment Method].[Code]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
              ON
                     [Sales Order Entity Buffer].[Shipment Method Code] = [Shipment Method].[Code]
19Shortcut Dimension 1 Code Searchnvarchar(40)
20Shortcut Dimension 2 Code Searchnvarchar(40)
21Customer Posting Group Searchnvarchar(40)
Key to join to the Customer Posting Group table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Customer Posting Group]
       ,[Customer Posting Group].[Code]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group]
              ON
                     [Sales Order Entity Buffer].[Customer Posting Group] = [Customer Posting Group].[Code]
22Currency Code Searchnvarchar(20)
Key to join to the Currency table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Currency Code]
       ,[Currency].[Code]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
              ON
                     [Sales Order Entity Buffer].[Currency Code] = [Currency].[Code]
23Prices Including VAT Searchtinyint
24Salesperson Code Searchnvarchar(40)
Key to join to the Salesperson_Purchaser table.

Show/hide example query

SELECT
       [Sales Order Entity Buffer].[Salesperson Code]
       ,[Salesperson_Purchaser].[No_]
FROM
       [CRONUS UK Ltd_$Sales Order Entity Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Order Entity Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson_Purchaser]
              ON
                     [Sales Order Entity Buffer].[Salesperson Code] = [Salesperson_Purchaser].[No_]
25Amount Searchdecimal(38,38)
26Amount Including VAT Searchdecimal(38,38)
27Sell-to Customer Name Searchnvarchar(200)
28Sell-to Address Searchnvarchar(200)
29Sell-to Address 2 Searchnvarchar(100)
30Sell-to City Searchnvarchar(60)
31Sell-to Contact Searchnvarchar(200)
32Bill-to Post Code Searchnvarchar(40)
33Bill-to County Searchnvarchar(60)
34Bill-to Country_Region Code Searchnvarchar(20)
35Sell-to Post Code Searchnvarchar(40)
36Sell-to County Searchnvarchar(60)
37Sell-to Country_Region Code Searchnvarchar(20)
38Ship-to Post Code Searchnvarchar(40)
39Ship-to County Searchnvarchar(60)
40Ship-to Country_Region Code Searchnvarchar(20)
41Document Date Searchdatetime
42External Document No_ Searchnvarchar(70)
43Sell-to Phone No_ Searchnvarchar(60)
44Sell-to E-Mail Searchnvarchar(160)
45Cust_ Ledger Entry No_ Searchint
46Invoice Discount Amount Searchdecimal(38,38)
47Sell-To Contact No_ Searchnvarchar(40)
48Shipping Advice Searchint
49Completely Shipped Searchtinyint
50Requested Delivery Date Searchdatetime
51Id Searchuniqueidentifier
52Total Tax Amount Searchdecimal(38,38)
53Status Searchint
54Discount Applied Before Tax Searchtinyint
55Last Modified Date Time Searchdatetime
56Customer Id Searchuniqueidentifier
57Contact Graph Id Searchnvarchar(500)
58Currency Id Searchuniqueidentifier
59Payment Terms Id Searchuniqueidentifier
60Shipment Method Id Searchuniqueidentifier
61Bill-to Customer Id Searchuniqueidentifier
62$systemId Searchuniqueidentifier
63$systemCreatedAt Searchdatetime
64$systemCreatedBy Searchuniqueidentifier
65$systemModifiedAt Searchdatetime
66$systemModifiedBy Searchuniqueidentifier

Show/hide tables related from Sales Order Entity Buffer table

Leave a Reply

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