Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/4511
Table Type: Company
Table Name: SMTP Account
Database Table Name: CRONUS UK Ltd_$SMTP Account$68e13fa3-217a-4be0-9141-99e5bf0ca818
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 SMTP Account can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$SMTP Account$68e13fa3-217a-4be0-9141-99e5bf0ca818]
Show/hide an example select of all columns by name
SELECT
[Id]
,[Name]
,[Server]
,[Authentication]
,[User Name]
,[Server Port]
,[Secure Connection]
,[Password Key]
,[Sender Type]
,[Email Address]
,[Sender Name]
,[Created By]
,[Authentication Type]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$SMTP Account$68e13fa3-217a-4be0-9141-99e5bf0ca818]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$SMTP Account$68e13fa3-217a-4be0-9141-99e5bf0ca818] AS [SMTP Account]
LEFT JOIN
[User] AS [User]
ON
[SMTP Account].[Created By] = [User].[User Name]
LEFT JOIN
[User] AS [User]
ON
[SMTP Account].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[SMTP Account].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in SMTP Account table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Id | Primary Key | Normal | GUID | 16 | Id | uniqueidentifier |
2 | Name | Name of account | Normal | Text | 250 | Name | nvarchar(500) |
3 | Server | Server | Normal | Text | 250 | Server | nvarchar(500) |
4 | Authentication | Authentication | Normal | Option | 4 | Authentication | int |
Available options are:
| |||||||
5 | User Name | User Name | Normal | Text | 250 | User Name | nvarchar(500) |
6 | Server Port | SMTP Server Port | Normal | Integer | 4 | Server Port | int |
7 | Secure Connection | Secure Connection | Normal | Boolean | 4 | Secure Connection | tinyint |
8 | Password Key | Password Key | Normal | GUID | 16 | Password Key | uniqueidentifier |
9 | Sender Type | Sender Type | Normal | Option | 4 | Sender Type | int |
Available options are:
| |||||||
10 | Email Address | Email Address | Normal | Text | 250 | Email Address | nvarchar(500) |
11 | Sender Name | Sender Name | Normal | Text | 250 | Sender Name | nvarchar(500) |
12 | Created By | Created By | Normal | Text | 50 | Created By | nvarchar(100) |
Key to join to the User table.Show/hide example querySELECT [SMTP Account].[Created By] ,[User].[User Name] FROM [CRONUS UK Ltd_$SMTP Account$68e13fa3-217a-4be0-9141-99e5bf0ca818] AS [SMTP Account] LEFT JOIN [User] AS [User] ON [SMTP Account].[Created By] = [User].[User Name] | |||||||
13 | Authentication Type | Authentication Type | Normal | Option | 4 | Authentication Type | int |
Available options are:
| |||||||
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 [SMTP Account].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$SMTP Account$68e13fa3-217a-4be0-9141-99e5bf0ca818] AS [SMTP Account] LEFT JOIN [User] AS [User] ON [SMTP Account].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |