O365 Sales Document

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

Table Type: Company

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

Table Number: 2103

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 O365 Sales Document can be queried.

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [timestamp]
   ,[Document Type]
   ,[No_]
   ,[Posted]
   ,[Sell-to Customer No_]
   ,[Due Date]
   ,[Currency Code]
   ,[Sell-to Customer Name]
   ,[Sell-to Contact]
   ,[Document Date]
   ,[IsTest]
   ,[Currency Symbol]
   ,[Document Status]
   ,[Sales Amount]
   ,[Outstanding Amount]
   ,[Total Invoiced Amount]
   ,[Outstanding Status]
   ,[Document Icon]
   ,[Payment Method]
   ,[Display No_]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$O365 Sales Document$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$O365 Sales Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Document]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [O365 Sales Document].[Sell-to Customer No_] = [Customer].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [O365 Sales Document].[Currency Code] = [Currency].[Code]

Show/hide columns in O365 Sales Document table

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

Show/hide example query

SELECT
       [O365 Sales Document].[Sell-to Customer No_]
       ,[Customer].[No_]
FROM
       [CRONUS UK Ltd_$O365 Sales Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Document]
LEFT JOIN
       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
              ON
                     [O365 Sales Document].[Sell-to Customer No_] = [Customer].[No_]
6Due Date Searchdatetime
7Currency Code Searchnvarchar(20)
Key to join to the Currency table.

Show/hide example query

SELECT
       [O365 Sales Document].[Currency Code]
       ,[Currency].[Code]
FROM
       [CRONUS UK Ltd_$O365 Sales Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Document]
LEFT JOIN
       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
              ON
                     [O365 Sales Document].[Currency Code] = [Currency].[Code]
8Sell-to Customer Name Searchnvarchar(200)
9Sell-to Contact Searchnvarchar(200)
10Document Date Searchdatetime
11IsTest Searchtinyint
12Currency Symbol Searchnvarchar(20)
13Document Status Searchint
14Sales Amount Searchdecimal(38,38)
15Outstanding Amount Searchdecimal(38,38)
16Total Invoiced Amount Searchnvarchar(500)
17Outstanding Status Searchnvarchar(500)
18Document Icon Searchuniqueidentifier
19Payment Method Searchnvarchar(20)
20Display No_ Searchnvarchar(40)
21$systemId Searchuniqueidentifier
22$systemCreatedAt Searchdatetime
23$systemCreatedBy Searchuniqueidentifier
24$systemModifiedAt Searchdatetime
25$systemModifiedBy Searchuniqueidentifier

Show/hide tables related from O365 Sales Document table

Leave a Reply

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