Attachment

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

Table Type: Company

Table Name: Attachment
Database Table Name: CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext

Table Number: 5062

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 Attachment can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext]

Show/hide an example select of all columns by name

SELECT
   [No_]
   ,[Attachment File]
   ,[Storage Type]
   ,[Storage Pointer]
   ,[File Extension]
   ,[Read Only]
   ,[Last Date Modified]
   ,[Last Time Modified]
   ,[Merge Source]
   ,[Email Message ID]
   ,[Email Entry ID]
   ,[Email Message Checksum]
   ,[Email Message Url]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Attachment]
LEFT JOIN
   [CRONUS UK Ltd_$Email Message$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Email Message]
      ON
         [Attachment].[Email Message Id] = [Email Message].[Id]
LEFT JOIN
   [User] AS [User]
      ON
         [Attachment].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Attachment].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Attachment table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1No. Primary Key SearchNo.NormalInteger4No_int
2Attachment File SearchAttachment FileNormalBLOB8Attachment Fileimage
3Storage Type SearchStorage TypeNormalOption4Storage Typeint
Available options are:
  • “Embedded”
  • “Disk File”
  • “Exchange Storage”
4Storage Pointer SearchStorage PointerNormalText250Storage Pointernvarchar(500)
5File Extension SearchFile ExtensionNormalText250File Extensionnvarchar(500)
6Read Only SearchRead OnlyNormalBoolean4Read Onlytinyint
7Last Date Modified SearchLast Date ModifiedNormalDate4Last Date Modifieddatetime
8Last Time Modified SearchLast Time ModifiedNormalTime4Last Time Modifieddatetime
13Merge Source SearchMerge SourceNormalBLOB8Merge Sourceimage
14Email Message ID SearchEmail Message IDNormalBLOB8Email Message IDimage
Key to join to the Email Message table.

Show/hide example query

SELECT
       [Attachment].[Email Message ID]
       ,[Email Message].[Id]
FROM
       [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Attachment]
LEFT JOIN
       [CRONUS UK Ltd_$Email Message$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Email Message]
              ON
                     [Attachment].[Email Message ID] = [Email Message].[Id]
15Email Entry ID SearchEmail Entry IDNormalBLOB8Email Entry IDimage
16Email Message Checksum SearchEmail Message ChecksumNormalInteger4Email Message Checksumint
17Email Message Url SearchEmail Message UrlNormalBLOB8Email Message Urlimage
1680Internet Message ID SearchInternet Message IDNormalBLOB8
1681Internet Message Checksum SearchInternet Message ChecksumNormalInteger4
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
       [Attachment].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Attachment]
LEFT JOIN
       [User] AS [User]
              ON
                     [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
       [Attachment].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Attachment]
LEFT JOIN
       [User] AS [User]
              ON
                     [Attachment].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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