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
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
[timestamp]
,[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_$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]
Show/hide columns in Item Template table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Key ![]() ![]() | int | ||||
3 | Code ![]() | nvarchar(20) | ||||
4 | Template Name ![]() | nvarchar(200) | ||||
5 | Base Unit of Measure ![]() | nvarchar(20) | ||||
6 | Type ![]() | int | ||||
7 | Inventory Posting Group ![]() | nvarchar(40) | ||||
8 | Item Disc_ Group ![]() | nvarchar(40) | ||||
9 | Allow Invoice Disc_ ![]() | tinyint | ||||
10 | Price_Profit Calculation ![]() | int | ||||
11 | Profit _ ![]() | decimal(38,38) | ||||
12 | Costing Method ![]() | int | ||||
13 | Indirect Cost _ ![]() | decimal(38,38) | ||||
14 | Price Includes VAT ![]() | tinyint | ||||
15 | Gen_ Prod_ Posting Group ![]() | nvarchar(40) | ||||
16 | Automatic Ext_ Texts ![]() | tinyint | ||||
17 | Tax Group Code ![]() | nvarchar(40) | ||||
Key to join to the Tax Group table.Show/hide example querySELECT
[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] | ||||||
18 | VAT Prod_ Posting Group ![]() | nvarchar(40) | ||||
19 | Item Category Code ![]() | nvarchar(40) | ||||
Key to join to the Item Category table.Show/hide example querySELECT
[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] | ||||||
20 | Service Item Group ![]() | nvarchar(20) | ||||
Key to join to the Service Item Group table.Show/hide example querySELECT
[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] | ||||||
21 | Warehouse Class Code ![]() | nvarchar(20) | ||||
Key to join to the Warehouse Class table.Show/hide example querySELECT
[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] | ||||||
22 | $systemId ![]() | uniqueidentifier | ||||
23 | $systemCreatedAt ![]() | datetime | ||||
24 | $systemCreatedBy ![]() | uniqueidentifier | ||||
25 | $systemModifiedAt ![]() | datetime | ||||
26 | $systemModifiedBy ![]() | uniqueidentifier |