Item Substitution

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

Table Type: Company

Table Name: Item Substitution
Database Table Name: CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5715

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

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [No_]
   ,[Variant Code]
   ,[Substitute No_]
   ,[Substitute Variant Code]
   ,[Description]
   ,[Inventory]
   ,[Interchangeable]
   ,[Type]
   ,[Substitute Type]
   ,[Relations Level]
   ,[Quantity Avail_ on Shpt_ Date]
   ,[Shipment Date]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Substitution]
LEFT JOIN
   [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
      ON
         [Item Substitution].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
      ON
         [Item Substitution].[Location Filter] = [Location].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Item Substitution].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Item Substitution].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Item Substitution table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1No. Primary Key SearchNo.NormalCode20No_nvarchar(40)
2Variant Code Primary Key SearchVariant CodeNormalCode10Variant Codenvarchar(20)
Key to join to the Item Variant table.

Show/hide example query

SELECT
       [Item Substitution].[Variant Code]
       ,[Item Variant].[Code]
FROM
       [CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Substitution]
LEFT JOIN
       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
              ON
                     [Item Substitution].[Variant Code] = [Item Variant].[Code]
3Substitute No. Primary Key SearchSubstitute No.NormalCode20Substitute No_nvarchar(40)
4Substitute Variant Code Primary Key SearchSubstitute Variant CodeNormalCode10Substitute Variant Codenvarchar(20)
5Description SearchDescriptionNormalText100Descriptionnvarchar(200)
6Inventory SearchQuantity on HandNormalDecimal12Inventorydecimal(38,38)
7Interchangeable SearchInterchangeableNormalBoolean4Interchangeabletinyint
8Condition SearchConditionFlowFieldBoolean4
9Location Filter SearchLocation FilterFlowFilterCode10
100Type Primary Key SearchTypeNormalOption4Typeint
Available options are:
  • “Item”
  • “Nonstock Item”
101Substitute Type Primary Key SearchSubstitute TypeNormalOption4Substitute Typeint
Available options are:
  • “Item”
  • “Nonstock Item”
102Sub. Item No. SearchSub. Item No.FlowFieldCode20
103Relations Level SearchRelations LevelNormalInteger4Relations Levelint
104Quantity Avail. on Shpt. Date SearchQuantity Avail. on Shpt. DateNormalDecimal12Quantity Avail_ on Shpt_ Datedecimal(38,38)
105Shipment Date SearchShipment DateNormalDate4Shipment Datedatetime
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
       [Item Substitution].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Substitution]
LEFT JOIN
       [User] AS [User]
              ON
                     [Item Substitution].[$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
       [Item Substitution].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Item Substitution$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Substitution]
LEFT JOIN
       [User] AS [User]
              ON
                     [Item Substitution].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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