Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/130
Table Type: Company
Table Name: Incoming Document
Database Table Name: CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Incoming Document can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[Description]
,[Created Date-Time]
,[Created By User ID]
,[Released]
,[Released Date-Time]
,[Released By User ID]
,[Last Date-Time Modified]
,[Last Modified By User ID]
,[Posted]
,[Posted Date-Time]
,[Document Type]
,[Document No_]
,[Posting Date]
,[Status]
,[URL1]
,[URL2]
,[URL3]
,[URL4]
,[Vendor Name]
,[Vendor VAT Registration No_]
,[Vendor IBAN]
,[Document Date]
,[Vendor Bank Branch No_]
,[Vendor Bank Account No_]
,[Vendor No_]
,[Data Exchange Type]
,[OCR Data Corrected]
,[OCR Status]
,[OCR Track ID]
,[OCR Service Doc_ Template Code]
,[OCR Process Finished]
,[Created Doc_ Error Msg_ Type]
,[Vendor Id]
,[Currency Code]
,[Amount Excl_ VAT]
,[Amount Incl_ VAT]
,[VAT Amount]
,[Due Date]
,[Vendor Invoice No_]
,[Order No_]
,[Vendor Phone No_]
,[Related Record ID]
,[URL]
,[Job Queue Status]
,[Job Queue Entry ID]
,[Processed]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Incoming 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_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document]
LEFT JOIN
[User] AS [User]
ON
[Incoming Document].[Released By User ID] = [User].[User Security ID]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Incoming Document].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Incoming Document].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Incoming Document].[Document Type] = [Sales Header].[Document Type]
AND
[Incoming Document].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Data Exchange Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exchange Type]
ON
[Incoming Document].[Data Exchange Type] = [Data Exchange Type].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
ON
[Incoming Document].[Vendor Id] = [Vendor].[$systemId]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Incoming Document].[Currency Code] = [Currency].[Code]
LEFT JOIN
[User] AS [User]
ON
[Incoming Document].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Incoming Document].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Incoming Document table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Entry No. | Entry No. | Normal | Integer | 4 | Entry No_ | int |
2 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
3 | Created Date-Time | Created Date-Time | Normal | DateTime | 8 | Created Date-Time | datetime |
4 | Created By User ID | Created By User ID | Normal | GUID | 16 | Created By User ID | uniqueidentifier |
5 | Created By User Name | Created By User Name | FlowField | Code | 50 | ||
6 | Released | Released | Normal | Boolean | 4 | Released | tinyint |
7 | Released Date-Time | Released Date-Time | Normal | DateTime | 8 | Released Date-Time | datetime |
8 | Released By User ID | Released By User ID | Normal | GUID | 16 | Released By User ID | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [Incoming Document].[Released By User ID] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [User] AS [User] ON [Incoming Document].[Released By User ID] = [User].[User Security ID] | |||||||
9 | Released By User Name | Released By User Name | FlowField | Code | 50 | ||
10 | Last Date-Time Modified | Last Date-Time Modified | Normal | DateTime | 8 | Last Date-Time Modified | datetime |
11 | Last Modified By User ID | Last Modified By User ID | Normal | GUID | 16 | Last Modified By User ID | uniqueidentifier |
12 | Last Modified By User Name | Last Modified By User Name | FlowField | Code | 50 | ||
13 | Posted | Posted | Normal | Boolean | 4 | Posted | tinyint |
14 | Posted Date-Time | Posted Date-Time | Normal | DateTime | 8 | Posted Date-Time | datetime |
15 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
16 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
17 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
18 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
19 | URL1 | URL1 | Normal | Text | 250 | URL1 | nvarchar(500) |
20 | URL2 | URL2 | Normal | Text | 250 | URL2 | nvarchar(500) |
21 | URL3 | URL3 | Normal | Text | 250 | URL3 | nvarchar(500) |
22 | URL4 | URL4 | Normal | Text | 250 | URL4 | nvarchar(500) |
23 | Vendor Name | Vendor Name | Normal | Text | 100 | Vendor Name | nvarchar(200) |
24 | Vendor VAT Registration No. | Vendor Tax Registration No. | Normal | Text | 30 | Vendor VAT Registration No_ | nvarchar(60) |
25 | Vendor IBAN | Vendor IBAN | Normal | Code | 50 | Vendor IBAN | nvarchar(100) |
26 | Document Date | Document Date | Normal | Date | 4 | Document Date | datetime |
27 | Vendor Bank Branch No. | Vendor Bank Branch No. | Normal | Text | 20 | Vendor Bank Branch No_ | nvarchar(40) |
28 | Vendor Bank Account No. | Vendor Bank Account No. | Normal | Text | 30 | Vendor Bank Account No_ | nvarchar(60) |
29 | Vendor No. | Vendor No. | Normal | Code | 20 | Vendor No_ | nvarchar(40) |
Key to join to the Vendor table.Show/hide example querySELECT [Incoming Document].[Vendor No_] ,[Vendor].[No_] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor] ON [Incoming Document].[Vendor No_] = [Vendor].[No_] | |||||||
30 | Data Exchange Type | Data Exchange Type | Normal | Code | 20 | Data Exchange Type | nvarchar(40) |
Key to join to the Data Exchange Type table.Show/hide example querySELECT [Incoming Document].[Data Exchange Type] ,[Data Exchange Type].[Code] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [CRONUS UK Ltd_$Data Exchange Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exchange Type] ON [Incoming Document].[Data Exchange Type] = [Data Exchange Type].[Code] | |||||||
31 | OCR Data Corrected | OCR Data Corrected | Normal | Boolean | 4 | OCR Data Corrected | tinyint |
32 | OCR Status | OCR Status | Normal | Option | 4 | OCR Status | int |
Available options are:
| |||||||
33 | OCR Track ID | OCR Track ID | Normal | Text | 20 | OCR Track ID | nvarchar(40) |
38 | OCR Service Doc. Template Code | OCR Service Doc. Template Code | Normal | Code | 20 | OCR Service Doc_ Template Code | nvarchar(40) |
Key to join to the OCR Service Document Template table.Show/hide example querySELECT [Incoming Document].[OCR Service Doc_ Template Code] ,[OCR Service Document Template].[Code] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [CRONUS UK Ltd_$OCR Service Document Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [OCR Service Document Template] ON [Incoming Document].[OCR Service Doc_ Template Code] = [OCR Service Document Template].[Code] | |||||||
39 | OCR Service Doc. Template Name | OCR Service Doc. Template Name | FlowField | Text | 50 | ||
40 | OCR Process Finished | OCR Process Finished | Normal | Boolean | 4 | OCR Process Finished | tinyint |
41 | Created Doc. Error Msg. Type | Created Doc. Error Msg. Type | Normal | Option | 4 | Created Doc_ Error Msg_ Type | int |
Available options are:
| |||||||
42 | Vendor Id | Vendor Id | Normal | GUID | 16 | Vendor Id | uniqueidentifier |
Key to join to the Vendor table.Show/hide example querySELECT [Incoming Document].[Vendor Id] ,[Vendor].[$systemId] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor] ON [Incoming Document].[Vendor Id] = [Vendor].[$systemId] | |||||||
50 | Currency Code | Currency Code | Normal | Code | 10 | Currency Code | nvarchar(20) |
Key to join to the Currency table.Show/hide example querySELECT [Incoming Document].[Currency Code] ,[Currency].[Code] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [Incoming Document].[Currency Code] = [Currency].[Code] | |||||||
51 | Amount Excl. VAT | Amount Excl. Tax | Normal | Decimal | 12 | Amount Excl_ VAT | decimal(38,38) |
52 | Amount Incl. VAT | Amount Incl. Tax | Normal | Decimal | 12 | Amount Incl_ VAT | decimal(38,38) |
53 | VAT Amount | Tax Amount | Normal | Decimal | 12 | VAT Amount | decimal(38,38) |
54 | Due Date | Due Date | Normal | Date | 4 | Due Date | datetime |
55 | Vendor Invoice No. | Vendor Invoice No. | Normal | Code | 35 | Vendor Invoice No_ | nvarchar(70) |
56 | Order No. | Order No. | Normal | Code | 20 | Order No_ | nvarchar(40) |
57 | Vendor Phone No. | Vendor Phone No. | Normal | Text | 30 | Vendor Phone No_ | nvarchar(60) |
58 | Related Record ID | Related Record ID | Normal | RecordID | 448 | Related Record ID | varbinary(448) |
60 | URL | URL | Normal | Text | 1024 | URL | nvarchar(2048) |
160 | Job Queue Status | Job Queue Status | Normal | Option | 4 | Job Queue Status | int |
Available options are:
| |||||||
161 | Job Queue Entry ID | Job Queue Entry ID | Normal | GUID | 16 | Job Queue Entry ID | uniqueidentifier |
162 | Processed | Processed | Normal | Boolean | 4 | Processed | tinyint |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [Incoming Document].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] LEFT JOIN [User] AS [User] ON [Incoming Document].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |