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
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 Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Integer | 4 | No_ | int |
2 | Attachment File | Attachment File | Normal | BLOB | 8 | Attachment File | image |
3 | Storage Type | Storage Type | Normal | Option | 4 | Storage Type | int |
Available options are:
| |||||||
4 | Storage Pointer | Storage Pointer | Normal | Text | 250 | Storage Pointer | nvarchar(500) |
5 | File Extension | File Extension | Normal | Text | 250 | File Extension | nvarchar(500) |
6 | Read Only | Read Only | Normal | Boolean | 4 | Read Only | tinyint |
7 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
8 | Last Time Modified | Last Time Modified | Normal | Time | 4 | Last Time Modified | datetime |
13 | Merge Source | Merge Source | Normal | BLOB | 8 | Merge Source | image |
14 | Email Message ID | Email Message ID | Normal | BLOB | 8 | Email Message ID | image |
Key to join to the Email Message table.Show/hide example querySELECT [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] | |||||||
15 | Email Entry ID | Email Entry ID | Normal | BLOB | 8 | Email Entry ID | image |
16 | Email Message Checksum | Email Message Checksum | Normal | Integer | 4 | Email Message Checksum | int |
17 | Email Message Url | Email Message Url | Normal | BLOB | 8 | Email Message Url | image |
1680 | Internet Message ID | Internet Message ID | Normal | BLOB | 8 | ||
1681 | Internet Message Checksum | Internet Message Checksum | Normal | Integer | 4 | ||
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 [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] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |