Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/133
Table Type: Company
Table Name: Incoming Document Attachment
Database Table Name: CRONUS UK Ltd_$Incoming Document Attachment$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 Attachment can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Incoming Document Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Incoming Document Entry No_]
,[Line No_]
,[Created Date-Time]
,[Created By User Name]
,[Name]
,[Type]
,[File Extension]
,[Content]
,[Document No_]
,[Posting Date]
,[Default]
,[Use for OCR]
,[External Document Reference]
,[OCR Service Document Reference]
,[Generated from OCR]
,[Main Attachment]
,[Id]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Incoming Document Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[] AS [Incoming Document Attachment]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Incoming Document Attachment].[Document Type Filter] = [Sales Header].[Document Type]
LEFT JOIN
[User] AS [User]
ON
[Incoming Document Attachment].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Incoming Document Attachment].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Incoming Document Attachment table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Incoming Document Entry No. | Incoming Document Entry No. | Normal | Integer | 4 | Incoming Document Entry No_ | int |
Key to join to the Incoming Document table.Show/hide example querySELECT [Incoming Document Attachment].[Incoming Document Entry No_] ,[Incoming Document].[Entry No_] FROM [CRONUS UK Ltd_$Incoming Document Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document Attachment] LEFT JOIN [CRONUS UK Ltd_$Incoming Document$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document] ON [Incoming Document Attachment].[Incoming Document Entry No_] = [Incoming Document].[Entry No_] | |||||||
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Created Date-Time | Created Date-Time | Normal | DateTime | 8 | Created Date-Time | datetime |
4 | Created By User Name | Created By User Name | Normal | Code | 50 | Created By User Name | nvarchar(100) |
5 | Name | Name | Normal | Text | 250 | Name | nvarchar(500) |
6 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
7 | File Extension | File Extension | Normal | Text | 30 | File Extension | nvarchar(60) |
8 | Content | Content | Normal | BLOB | 8 | Content | image |
9 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
10 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
11 | Document Table No. Filter | Document Table No. Filter | FlowFilter | Integer | 4 | ||
12 | Document Type Filter | Document Type Filter | FlowFilter | Option | 4 | ||
Key to join to the Sales Header table.Show/hide example querySELECT [Incoming Document Attachment].[] ,[Sales Header].[Document Type] FROM [CRONUS UK Ltd_$Incoming Document Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document Attachment] LEFT JOIN [CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header] ON [Incoming Document Attachment].[] = [Sales Header].[Document Type] | |||||||
13 | Document No. Filter | Document No. Filter | FlowFilter | Code | 20 | ||
Key to join to the Sales Header table.Show/hide example querySELECT [Incoming Document Attachment].[] ,[Sales Header].[No_] FROM [CRONUS UK Ltd_$Incoming Document Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document Attachment] LEFT JOIN [CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header] ON [Incoming Document Attachment].[] = [Sales Header].[No_] | |||||||
14 | Journal Template Name Filter | Journal Template Name Filter | FlowFilter | Code | 20 | ||
15 | Journal Batch Name Filter | Journal Batch Name Filter | FlowFilter | Code | 20 | ||
16 | Journal Line No. Filter | Journal Line No. Filter | FlowFilter | Integer | 4 | ||
17 | Default | Default | Normal | Boolean | 4 | Default | tinyint |
18 | Use for OCR | Use for OCR | Normal | Boolean | 4 | Use for OCR | tinyint |
19 | External Document Reference | External Document Reference | Normal | Text | 50 | External Document Reference | nvarchar(100) |
20 | OCR Service Document Reference | OCR Service Document Reference | Normal | Text | 50 | OCR Service Document Reference | nvarchar(100) |
21 | Generated from OCR | Generated from OCR | Normal | Boolean | 4 | Generated from OCR | tinyint |
22 | Main Attachment | Main Attachment | Normal | Boolean | 4 | Main Attachment | tinyint |
8000 | Id | Id | Normal | GUID | 16 | Id | uniqueidentifier |
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 Attachment].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Incoming Document Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Incoming Document Attachment] LEFT JOIN [User] AS [User] ON [Incoming Document Attachment].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |