Retention Policy Setup

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/3901

Table Type: Company

Table Name: Retention Policy Setup
Database Table Name: CRONUS UK Ltd_$Retention Policy Setup$63ca2fa4-4f03-4f2b-a480-172fef340d3f

Table Number: 3901

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 can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Retention Policy Setup$63ca2fa4-4f03-4f2b-a480-172fef340d3f]

Show/hide an example select of all columns by name

SELECT
   [Table Id]
   ,[Retention Period]
   ,[Enabled]
   ,[Apply to all records]
   ,[Date Field No_]
   ,[Manual]
   ,[Number Of Records Deleted]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Retention Policy Setup$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$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup]
LEFT JOIN
   [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
      ON
         [Retention Policy Setup].[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].[Retention Period] = [Retention Period].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Retention Policy Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Retention Policy Setup].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Retention Policy Setup 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].[Table Id]
	       ,[Data Exch. Mapping].[Table ID]
	FROM
	       [CRONUS UK Ltd_$Retention Policy Setup$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup]
	LEFT JOIN
	       [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
	              ON
	                     [Retention Policy Setup].[Table Id] = [Data Exch. Mapping].[Table ID]
2Table Name Primary Key SearchTable NameFlowFieldText30
3Table Caption SearchTable CaptionFlowFieldText249
4Retention Period SearchRetention PeriodNormalCode20Retention Periodnvarchar(40)
Key to join to the Retention Period table.

Show/hide example query

SELECT
	       [Retention Policy Setup].[Retention Period]
	       ,[Retention Period].[Code]
	FROM
	       [CRONUS UK Ltd_$Retention Policy Setup$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup]
	LEFT JOIN
	       [CRONUS UK Ltd_$Retention Period$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Period]
	              ON
	                     [Retention Policy Setup].[Retention Period] = [Retention Period].[Code]
5Enabled SearchEnabledNormalBoolean4Enabledtinyint
6Apply to all records SearchApply to all recordsNormalBoolean4Apply to all recordstinyint
7Date Field No. SearchDate Field No.NormalInteger4Date Field No_int
8Date Field Name SearchDate Field NameFlowFieldText30
9Date Field Caption SearchDate Field CaptionFlowFieldText80
10Manual SearchManualNormalBoolean4Manualtinyint
100Number Of Records Deleted SearchNumber Of Records DeletedNormalInteger4Number Of Records Deletedint
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].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Retention Policy Setup$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Policy Setup]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Retention Policy Setup].[$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 *