Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/9500
Table Type: Company
Table Name: Email Item
Database Table Name: CRONUS UK Ltd_$Email Item$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 Email Item can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Email Item$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[ID]
,[From Name]
,[From Address]
,[Send to]
,[Send CC]
,[Send BCC]
,[Subject]
,[Body]
,[Attachment File Path]
,[Attachment Name]
,[Plaintext Formatted]
,[Body File Path]
,[Message Type]
,[Send as HTML]
,[Attachment File Path 2]
,[Attachment Name 2]
,[Attachment File Path 3]
,[Attachment Name 3]
,[Attachment File Path 4]
,[Attachment Name 4]
,[Attachment File Path 5]
,[Attachment Name 5]
,[Attachment File Path 6]
,[Attachment Name 6]
,[Attachment File Path 7]
,[Attachment Name 7]
,[Source Table]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Email Item$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 Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Item]
LEFT JOIN
[User] AS [User]
ON
[Email Item].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Email Item].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Email Item table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | ID | ID | Normal | GUID | 16 | ID | uniqueidentifier |
2 | From Name | From Name | Normal | Text | 100 | From Name | nvarchar(200) |
3 | From Address | From Address | Normal | Text | 250 | From Address | nvarchar(500) |
4 | Send to | Send to | Normal | Text | 250 | Send to | nvarchar(500) |
5 | Send CC | Send CC | Normal | Text | 250 | Send CC | nvarchar(500) |
6 | Send BCC | Send BCC | Normal | Text | 250 | Send BCC | nvarchar(500) |
7 | Subject | Subject | Normal | Text | 250 | Subject | nvarchar(500) |
8 | Body | Body | Normal | BLOB | 8 | Body | image |
9 | Attachment File Path | Attachment File Path | Normal | Text | 250 | Attachment File Path | nvarchar(500) |
10 | Attachment Name | Attachment Name | Normal | Text | 250 | Attachment Name | nvarchar(500) |
11 | Plaintext Formatted | Plaintext Formatted | Normal | Boolean | 4 | Plaintext Formatted | tinyint |
12 | Body File Path | Body File Path | Normal | Text | 250 | Body File Path | nvarchar(500) |
13 | Message Type | Message Type | Normal | Option | 4 | Message Type | int |
Available options are:
| |||||||
14 | Send as HTML | Send as HTML | Normal | Boolean | 4 | Send as HTML | tinyint |
21 | Attachment File Path 2 | Attachment File Path 2 | Normal | Text | 250 | Attachment File Path 2 | nvarchar(500) |
22 | Attachment Name 2 | Attachment Name 2 | Normal | Text | 50 | Attachment Name 2 | nvarchar(100) |
23 | Attachment File Path 3 | Attachment File Path 3 | Normal | Text | 250 | Attachment File Path 3 | nvarchar(500) |
24 | Attachment Name 3 | Attachment Name 3 | Normal | Text | 50 | Attachment Name 3 | nvarchar(100) |
25 | Attachment File Path 4 | Attachment File Path 4 | Normal | Text | 250 | Attachment File Path 4 | nvarchar(500) |
26 | Attachment Name 4 | Attachment Name 4 | Normal | Text | 50 | Attachment Name 4 | nvarchar(100) |
27 | Attachment File Path 5 | Attachment File Path 5 | Normal | Text | 250 | Attachment File Path 5 | nvarchar(500) |
28 | Attachment Name 5 | Attachment Name 5 | Normal | Text | 50 | Attachment Name 5 | nvarchar(100) |
29 | Attachment File Path 6 | Attachment File Path 6 | Normal | Text | 250 | Attachment File Path 6 | nvarchar(500) |
30 | Attachment Name 6 | Attachment Name 6 | Normal | Text | 50 | Attachment Name 6 | nvarchar(100) |
31 | Attachment File Path 7 | Attachment File Path 7 | Normal | Text | 250 | Attachment File Path 7 | nvarchar(500) |
32 | Attachment Name 7 | Attachment Name 7 | Normal | Text | 50 | Attachment Name 7 | nvarchar(100) |
33 | Source Table | Email Source Table | Normal | Integer | 4 | Source Table | int |
34 | Source System Id | The system id of the source record | Normal | GUID | 16 | ||
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 [Email Item].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Email Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Email Item] LEFT JOIN [User] AS [User] ON [Email Item].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |