Item Template

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

Table Type: Company

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

Table Number: 1301

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

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [Key]
   ,[Code]
   ,[Template Name]
   ,[Base Unit of Measure]
   ,[Type]
   ,[Inventory Posting Group]
   ,[Item Disc_ Group]
   ,[Allow Invoice Disc_]
   ,[Price_Profit Calculation]
   ,[Profit _]
   ,[Costing Method]
   ,[Indirect Cost _]
   ,[Price Includes VAT]
   ,[Gen_ Prod_ Posting Group]
   ,[Automatic Ext_ Texts]
   ,[Tax Group Code]
   ,[VAT Prod_ Posting Group]
   ,[Item Category Code]
   ,[Service Item Group]
   ,[Warehouse Class Code]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Item Template$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 Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
   [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
      ON
         [Item Template].[Base Unit of Measure] = [Unit of Measure].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group]
      ON
         [Item Template].[Inventory Posting Group] = [Inventory Posting Group].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group]
      ON
         [Item Template].[Tax Group Code] = [Tax Group].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Item Category$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Category]
      ON
         [Item Template].[Item Category Code] = [Item Category].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Service Item Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Group]
      ON
         [Item Template].[Service Item Group] = [Service Item Group].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Warehouse Class$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Warehouse Class]
      ON
         [Item Template].[Warehouse Class Code] = [Warehouse Class].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Item Template].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Item Template].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Item Template table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Key Primary Key SearchKeyNormalInteger4Keyint
2Code SearchCodeNormalCode10Codenvarchar(20)
3Template Name SearchTemplate NameNormalText100Template Namenvarchar(200)
8Base Unit of Measure SearchBase Unit of MeasureNormalCode10Base Unit of Measurenvarchar(20)
Key to join to the Unit of Measure table.

Show/hide example query

SELECT
       [Item Template].[Base Unit of Measure]
       ,[Unit of Measure].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
              ON
                     [Item Template].[Base Unit of Measure] = [Unit of Measure].[Code]
10Type SearchTypeNormalOption4Typeint
Available options are:
  • “Inventory”
  • “Service”
  • “Non-Inventory”
11Inventory Posting Group SearchInventory Posting GroupNormalCode20Inventory Posting Groupnvarchar(40)
Key to join to the Inventory Posting Group table.

Show/hide example query

SELECT
       [Item Template].[Inventory Posting Group]
       ,[Inventory Posting Group].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group]
              ON
                     [Item Template].[Inventory Posting Group] = [Inventory Posting Group].[Code]
14Item Disc. Group SearchItem Disc. GroupNormalCode20Item Disc_ Groupnvarchar(40)
Key to join to the Item Discount Group table.

Show/hide example query

SELECT
       [Item Template].[Item Disc_ Group]
       ,[Item Discount Group].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Item Discount Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Discount Group]
              ON
                     [Item Template].[Item Disc_ Group] = [Item Discount Group].[Code]
15Allow Invoice Disc. SearchAllow Invoice Disc.NormalBoolean4Allow Invoice Disc_tinyint
19Price/Profit Calculation SearchPrice/Profit CalculationNormalOption4Price_Profit Calculationint
Available options are:
  • “Profit=Price-Cost”
  • “Price=Cost+Profit”
  • “No Relationship”
20Profit % SearchProfit %NormalDecimal12Profit _decimal(38,38)
21Costing Method SearchCosting MethodNormalOption4Costing Methodint
Available options are:
  • “FIFO”
  • “LIFO”
  • “Specific”
  • “Average”
  • “Standard”
28Indirect Cost % SearchIndirect Cost %NormalDecimal12Indirect Cost _decimal(38,38)
87Price Includes VAT SearchPrice Includes VATNormalBoolean4Price Includes VATtinyint
91Gen. Prod. Posting Group SearchGen. Prod. Posting GroupNormalCode20Gen_ Prod_ Posting Groupnvarchar(40)
Key to join to the Gen. Product Posting Group table.

Show/hide example query

SELECT
       [Item Template].[Gen_ Prod_ Posting Group]
       ,[Gen. Product Posting Group].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group]
              ON
                     [Item Template].[Gen_ Prod_ Posting Group] = [Gen. Product Posting Group].[Code]
96Automatic Ext. Texts SearchAutomatic Ext. TextsNormalBoolean4Automatic Ext_ Textstinyint
98Tax Group Code SearchTax Group CodeNormalCode20Tax Group Codenvarchar(40)
Key to join to the Tax Group table.

Show/hide example query

SELECT
       [Item Template].[Tax Group Code]
       ,[Tax Group].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group]
              ON
                     [Item Template].[Tax Group Code] = [Tax Group].[Code]
99VAT Prod. Posting Group SearchVAT Prod. Posting GroupNormalCode20VAT Prod_ Posting Groupnvarchar(40)
Key to join to the VAT Product Posting Group table.

Show/hide example query

SELECT
       [Item Template].[VAT Prod_ Posting Group]
       ,[VAT Product Posting Group].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group]
              ON
                     [Item Template].[VAT Prod_ Posting Group] = [VAT Product Posting Group].[Code]
5702Item Category Code SearchItem Category CodeNormalCode20Item Category Codenvarchar(40)
Key to join to the Item Category table.

Show/hide example query

SELECT
       [Item Template].[Item Category Code]
       ,[Item Category].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Item Category$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Category]
              ON
                     [Item Template].[Item Category Code] = [Item Category].[Code]
5900Service Item Group SearchService Item GroupNormalCode10Service Item Groupnvarchar(20)
Key to join to the Service Item Group table.

Show/hide example query

SELECT
       [Item Template].[Service Item Group]
       ,[Service Item Group].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Service Item Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Group]
              ON
                     [Item Template].[Service Item Group] = [Service Item Group].[Code]
7300Warehouse Class Code SearchWarehouse Class CodeNormalCode10Warehouse Class Codenvarchar(20)
Key to join to the Warehouse Class table.

Show/hide example query

SELECT
       [Item Template].[Warehouse Class Code]
       ,[Warehouse Class].[Code]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [CRONUS UK Ltd_$Warehouse Class$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Warehouse Class]
              ON
                     [Item Template].[Warehouse Class Code] = [Warehouse Class].[Code]
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 Template].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [User] AS [User]
              ON
                     [Item Template].[$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 Template].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Item Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Template]
LEFT JOIN
       [User] AS [User]
              ON
                     [Item Template].[$systemModifiedBy] = [User].[User Security ID]

Show/hide tables related from Item Template table

Leave a Reply

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