Retention Policy Setup Line

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

Table Number: 3902

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 NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Table ID SearchTable IDNormalInteger4Table IDint
Key to join to the Data Exch. Mapping table.

Show/hide example query

SELECT
	       [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]
2Table Name Primary Key SearchTable NameFlowFieldText30
3Table Caption SearchTable CaptionFlowFieldText249
4Line No. SearchLine No.NormalInteger4Line No_int
5Enabled Primary Key SearchEnabledNormalBoolean4Enabledtinyint
6Retention Period SearchRetention PeriodNormalCode20Retention Periodnvarchar(40)
Key to join to the Retention Period table.

Show/hide example query

SELECT
	       [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]
7Date Field No. SearchDate Field No.NormalInteger4Date Field No_int
8Date Field Name SearchDate Field NameFlowFieldText30
9Date Field Caption SearchDate Field CaptionFlowFieldText80
10Table Filter SearchTable FilterNormalBLOB8Table Filterimage
11Table Filter Text SearchTable Filter TextNormalText2048Table Filter Textnvarchar(4096)
12Locked SearchLockedNormalBoolean4Lockedtinyint
3999Keep Last Version SearchKeep Last Document VersionNormalBoolean4
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [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]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *