Contract Change Log

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

Table Type: Company

Table Name: Contract Change Log
Database Table Name: CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5967

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

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Contract Type]
   ,[Contract No_]
   ,[Change No_]
   ,[User ID]
   ,[Date of Change]
   ,[Time of Change]
   ,[Contract Part]
   ,[Field Description]
   ,[Old Value]
   ,[New Value]
   ,[Type of Change]
   ,[Service Item No_]
   ,[Serv_ Contract Line No_]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contract Change Log]
LEFT JOIN
   [User] AS [User]
      ON
         [Contract Change Log].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Contract Change Log].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Contract Change Log table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Contract Type SearchContract TypeNormalOption4Contract Typeint
Available options are:
  • “Quote”
  • “Contract”
  • “Template”
2Contract No. Primary Key SearchContract No.NormalCode20Contract No_nvarchar(40)
3Change No. Primary Key SearchChange No.NormalInteger4Change No_int
4User ID SearchUser IDNormalCode50User IDnvarchar(100)
5Date of Change SearchDate of ChangeNormalDate4Date of Changedatetime
6Time of Change SearchTime of ChangeNormalTime4Time of Changedatetime
7Contract Part SearchContract PartNormalOption4Contract Partint
Available options are:
  • “Header”
  • “Line”
  • “Discount”
8Field Description SearchField DescriptionNormalText100Field Descriptionnvarchar(200)
9Old Value SearchOld ValueNormalText100Old Valuenvarchar(200)
10New Value SearchNew ValueNormalText100New Valuenvarchar(200)
12Type of Change SearchType of ChangeNormalOption4Type of Changeint
Available options are:
  • “Modify”
  • “Insert”
  • “Delete”
  • “Rename”
13Service Item No. SearchService Item No.NormalCode20Service Item No_nvarchar(40)
Key to join to the Service Item table.

Show/hide example query

SELECT
       [Contract Change Log].[Service Item No_]
       ,[Service Item].[No_]
FROM
       [CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contract Change Log]
LEFT JOIN
       [CRONUS UK Ltd_$Service Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item]
              ON
                     [Contract Change Log].[Service Item No_] = [Service Item].[No_]
14Serv. Contract Line No. SearchServ. Contract Line No.NormalInteger4Serv_ Contract Line No_int
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
       [Contract Change Log].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contract Change Log]
LEFT JOIN
       [User] AS [User]
              ON
                     [Contract Change Log].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Contract Change Log].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Contract Change Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contract Change Log]
LEFT JOIN
       [User] AS [User]
              ON
                     [Contract Change Log].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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