Incoming Document Attachment

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

Table Number: 133

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 NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Incoming Document Entry No. Primary Key SearchIncoming Document Entry No.NormalInteger4Incoming Document Entry No_int
Key to join to the Incoming Document table.

Show/hide example query

SELECT
       [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_]
2Line No. Primary Key SearchLine No.NormalInteger4Line No_int
3Created Date-Time SearchCreated Date-TimeNormalDateTime8Created Date-Timedatetime
4Created By User Name SearchCreated By User NameNormalCode50Created By User Namenvarchar(100)
5Name SearchNameNormalText250Namenvarchar(500)
6Type SearchTypeNormalOption4Typeint
Available options are:
  • ” “
  • “Image”
  • “PDF”
  • “Word”
  • “Excel”
  • “PowerPoint”
  • “Email”
  • “XML”
  • “Other”
7File Extension SearchFile ExtensionNormalText30File Extensionnvarchar(60)
8Content SearchContentNormalBLOB8Contentimage
9Document No. SearchDocument No.NormalCode20Document No_nvarchar(40)
10Posting Date SearchPosting DateNormalDate4Posting Datedatetime
11Document Table No. Filter SearchDocument Table No. FilterFlowFilterInteger4
12Document Type Filter SearchDocument Type FilterFlowFilterOption4
13Document No. Filter SearchDocument No. FilterFlowFilterCode20
14Journal Template Name Filter SearchJournal Template Name FilterFlowFilterCode20
15Journal Batch Name Filter SearchJournal Batch Name FilterFlowFilterCode20
16Journal Line No. Filter SearchJournal Line No. FilterFlowFilterInteger4
17Default SearchDefaultNormalBoolean4Defaulttinyint
18Use for OCR SearchUse for OCRNormalBoolean4Use for OCRtinyint
19External Document Reference SearchExternal Document ReferenceNormalText50External Document Referencenvarchar(100)
20OCR Service Document Reference SearchOCR Service Document ReferenceNormalText50OCR Service Document Referencenvarchar(100)
21Generated from OCR SearchGenerated from OCRNormalBoolean4Generated from OCRtinyint
22Main Attachment SearchMain AttachmentNormalBoolean4Main Attachmenttinyint
8000Id SearchIdNormalGUID16Iduniqueidentifier
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [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]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Incoming Document Attachment].[$systemModifiedBy]
       ,[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].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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