Retention Period

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

Table Type: Company

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

Table Number: 3900

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

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [Code]
   ,[Description]
   ,[Retention Period]
   ,[Ret_ Period Calculation]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Retention Period$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 Period$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Period]
LEFT JOIN
   [CRONUS UK Ltd_$Retention Period$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Period]
      ON
         [Retention Period].[Retention Period] = [Retention Period].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Retention Period].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Retention Period].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Retention Period table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Code SearchCodeNormalCode20Codenvarchar(40)
2Description Primary Key SearchDescriptionNormalText100Descriptionnvarchar(200)
3Retention Period SearchRetention PeriodNormalOption4Retention Periodint
Available options are:
  • “Never Delete”
  • “Custom”
  • “1 Week”
  • “28 Days”
  • “1 Month”
  • “3 Months”
  • “6 Months”
  • “1 Year”
  • “3 Years”
  • “5 Years”
4Ret. Period Calculation SearchRet. Period CalculationNormalDateFormula32Ret_ Period Calculationvarchar(32)
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 Period].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Retention Period$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Retention Period]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Retention Period].[$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 *