Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/3905
Table Type: Company
Table Name: Retention Policy Log Entry
Database Table Name: CRONUS UK Ltd_$Retention Policy Log Entry$63ca2fa4-4f03-4f2b-a480-172fef340d3f
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 Retention Policy Log Entry can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Retention Policy Log Entry$63ca2fa4-4f03-4f2b-a480-172fef340d3f]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[Session Id]
,[Category]
,[Message Type]
,[Message]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Retention Policy Log Entry$63ca2fa4-4f03-4f2b-a480-172fef340d3f]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Retention Policy Log Entry$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Log Entry]
LEFT JOIN
[CRONUS UK Ltd_$Workflow Category$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Category]
ON
[Retention Policy Log Entry].[Category] = [Workflow Category].[Code]
LEFT JOIN
[User] AS [User]
ON
[Retention Policy Log Entry].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Retention Policy Log Entry].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Retention Policy Log Entry table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Entry No. | Entry No. | Normal | BigInteger | 8 | Entry No_ | bigint |
3 | Session Id | Session Id | Normal | Integer | 4 | Session Id | int |
4 | User Id | User Id | FlowField | Code | 50 | ||
5 | Category | Category | Normal | Option | 4 | Category | int |
Key to join to the Workflow Category table.Show/hide example querySELECT [Retention Policy Log Entry].[Category] ,[Workflow Category].[Code] FROM [CRONUS UK Ltd_$Retention Policy Log Entry$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Log Entry] LEFT JOIN [CRONUS UK Ltd_$Workflow Category$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Category] ON [Retention Policy Log Entry].[Category] = [Workflow Category].[Code]
| |||||||
6 | Message Type | Message Type | Normal | Option | 4 | Message Type | int |
Available options are:
| |||||||
7 | Message | Message | Normal | Text | 2048 | Message | nvarchar(4096) |
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 [Retention Policy Log Entry].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Retention Policy Log Entry$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Log Entry] LEFT JOIN [User] AS [User] ON [Retention Policy 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 |