Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/3902
Table Type: Company
Table Name: Retention Policy Setup Line
Database Table Name: CRONUS UK Ltd_$Retention Policy Setup Line$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 Setup Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Retention Policy Setup Line$63ca2fa4-4f03-4f2b-a480-172fef340d3f]
Show/hide an example select of all columns by name
SELECT
[Table ID]
,[Line No_]
,[Enabled]
,[Retention Period]
,[Date Field No_]
,[Table Filter]
,[Table Filter Text]
,[Locked]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Retention Policy Setup Line$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 Setup Line$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup Line]
LEFT JOIN
[CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
ON
[Retention Policy Setup Line].[Table ID] = [Data Exch. Mapping].[Table ID]
LEFT JOIN
[CRONUS UK Ltd_$Retention Period$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Period]
ON
[Retention Policy Setup Line].[Retention Period] = [Retention Period].[Code]
LEFT JOIN
[User] AS [User]
ON
[Retention Policy Setup Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Retention Policy Setup Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Retention Policy Setup Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Table ID | Table ID | Normal | Integer | 4 | Table ID | int |
Key to join to the Data Exch. Mapping table.Show/hide example querySELECT [Retention Policy Setup Line].[Table ID] ,[Data Exch. Mapping].[Table ID] FROM [CRONUS UK Ltd_$Retention Policy Setup Line$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup Line] LEFT JOIN [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping] ON [Retention Policy Setup Line].[Table ID] = [Data Exch. Mapping].[Table ID] | |||||||
2 | Table Name | Table Name | FlowField | Text | 30 | ||
3 | Table Caption | Table Caption | FlowField | Text | 249 | ||
4 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
5 | Enabled | Enabled | Normal | Boolean | 4 | Enabled | tinyint |
6 | Retention Period | Retention Period | Normal | Code | 20 | Retention Period | nvarchar(40) |
Key to join to the Retention Period table.Show/hide example querySELECT [Retention Policy Setup Line].[Retention Period] ,[Retention Period].[Code] FROM [CRONUS UK Ltd_$Retention Policy Setup Line$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup Line] LEFT JOIN [CRONUS UK Ltd_$Retention Period$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Period] ON [Retention Policy Setup Line].[Retention Period] = [Retention Period].[Code] | |||||||
7 | Date Field No. | Date Field No. | Normal | Integer | 4 | Date Field No_ | int |
8 | Date Field Name | Date Field Name | FlowField | Text | 30 | ||
9 | Date Field Caption | Date Field Caption | FlowField | Text | 80 | ||
10 | Table Filter | Table Filter | Normal | BLOB | 8 | Table Filter | image |
11 | Table Filter Text | Table Filter Text | Normal | Text | 2048 | Table Filter Text | nvarchar(4096) |
12 | Locked | Locked | Normal | Boolean | 4 | Locked | tinyint |
3999 | Keep Last Version | Keep Last Document Version | Normal | Boolean | 4 | ||
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 Setup Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Retention Policy Setup Line$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup Line] LEFT JOIN [User] AS [User] ON [Retention Policy Setup Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |