Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000241
Table Type: System
Table Name: External Event Log Entry
Database Table Name: External Event Log Entry
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 External Event Log Entry can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[External Event Log Entry]
Show/hide an example select of all columns by name
SELECT
[ID]
,[App Id]
,[App Version]
,[Event Name]
,[Company Name]
,[User Id]
,[Event Date Time]
,[Event Payload Blob]
,[Processed]
,[Company Id]
,[Event Version]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[External Event Log Entry]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[External Event Log Entry] AS [External Event Log Entry]
LEFT JOIN
[Company] AS [Company]
ON
[External Event Log Entry].[Company Name] = [Company].[Name]
LEFT JOIN
[User] AS [User]
ON
[External Event Log Entry].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[External Event Log Entry].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in External Event Log Entry table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | ID | ID | Normal | Integer | 4 | ID | int |
2 | App Id | App Id | Normal | GUID | 16 | App Id | uniqueidentifier |
3 | App Version | App Version | Normal | Text | 43 | App Version | nvarchar(86) |
4 | Event Name | Event Name | Normal | Text | 80 | Event Name | nvarchar(160) |
5 | Company Name | Company Name | Normal | Text | 30 | Company Name | nvarchar(60) |
Key to join to the Company table.Show/hide example querySELECT [External Event Log Entry].[Company Name] ,[Company].[Name] FROM [External Event Log Entry] AS [External Event Log Entry] LEFT JOIN [Company] AS [Company] ON [External Event Log Entry].[Company Name] = [Company].[Name] | |||||||
6 | User Id | User Id | Normal | GUID | 16 | User Id | uniqueidentifier |
7 | Event Date Time | Event Date Time | Normal | DateTime | 8 | Event Date Time | datetime |
8 | Event Payload Blob | Event Payload Blob | Normal | BLOB | 8 | Event Payload Blob | image |
9 | Processed | Processed | Normal | Boolean | 4 | Processed | tinyint |
10 | Company Id | Company Id | Normal | GUID | 16 | Company Id | uniqueidentifier |
11 | Event Version | Event Version | Normal | Text | 43 | Event Version | nvarchar(86) |
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 [External Event Log Entry].[$systemCreatedBy] ,[User].[User Security ID] FROM [External Event Log Entry] AS [External Event Log Entry] LEFT JOIN [User] AS [User] ON [External Event Log Entry].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |