Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1680
Table Type: Company
Table Name: Email Logging Setup
Database Table Name: CRONUS UK Ltd_$Email Logging Setup$114e4e19-182b-42e2-b5a9-91d8b8ee8ce1
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 Logging Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Email Logging Setup$114e4e19-182b-42e2-b5a9-91d8b8ee8ce1]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Email Address]
,[Email Batch Size]
,[Enabled]
,[Client Id]
,[Client Secret Key]
,[Redirect URL]
,[Consent Given]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Email Logging Setup$114e4e19-182b-42e2-b5a9-91d8b8ee8ce1]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Email Logging Setup$114e4e19-182b-42e2-b5a9-91d8b8ee8ce1] AS [Email Logging Setup]
LEFT JOIN
[User] AS [User]
ON
[Email Logging Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Email Logging Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Email Logging Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Code | 10 | Primary Key | nvarchar(20) |
2 | Email Address | Email Address | Normal | Text | 250 | Email Address | nvarchar(500) |
3 | Email Batch Size | Email Batch Size | Normal | Integer | 4 | Email Batch Size | int |
4 | Enabled | Enabled | Normal | Boolean | 4 | Enabled | tinyint |
5 | Client Id | Client Id | Normal | Text | 250 | Client Id | nvarchar(500) |
6 | Client Secret Key | Client Secret Key | Normal | GUID | 16 | Client Secret Key | uniqueidentifier |
7 | Redirect URL | Redirect URL | Normal | Text | 2048 | Redirect URL | nvarchar(4096) |
8 | Consent Given | Consent Given | Normal | Boolean | 4 | Consent Given | tinyint |
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 Logging Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Email Logging Setup$114e4e19-182b-42e2-b5a9-91d8b8ee8ce1] AS [Email Logging Setup] LEFT JOIN [User] AS [User] ON [Email Logging Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |