Email Attachment

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

Table Type: Company

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

Table Number: 9501

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

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [Email Item ID]
   ,[Number]
   ,[File Path]
   ,[Name]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Email Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Email Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Attachment]
LEFT JOIN
   [CRONUS UK Ltd_$Email Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Item]
      ON
         [Email Attachment].[Email Item ID] = [Email Item].[ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Email Attachment].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Email Attachment].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Email Attachment table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Email Item ID Primary Key SearchEmail Item IDNormalGUID16Email Item IDuniqueidentifier
Key to join to the Email Item table.

Show/hide example query

SELECT
       [Email Attachment].[Email Item ID]
       ,[Email Item].[ID]
FROM
       [CRONUS UK Ltd_$Email Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Attachment]
LEFT JOIN
       [CRONUS UK Ltd_$Email Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Item]
              ON
                     [Email Attachment].[Email Item ID] = [Email Item].[ID]
2Number Primary Key SearchNumberNormalInteger4Numberint
10File Path SearchFile PathNormalText250File Pathnvarchar(500)
11Name SearchNameNormalText50Namenvarchar(100)
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
       [Email Attachment].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Email Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Attachment]
LEFT JOIN
       [User] AS [User]
              ON
                     [Email 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
       [Email Attachment].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Email Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Attachment]
LEFT JOIN
       [User] AS [User]
              ON
                     [Email Attachment].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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