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
[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 Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Key | Key | Normal | Integer | 4 | Key | int |
2 | Code | Code | Normal | Code | 10 | Code | nvarchar(20) |
3 | Template Name | Template Name | Normal | Text | 100 | Template Name | nvarchar(200) |
8 | Base Unit of Measure | Base Unit of Measure | Normal | Code | 10 | Base Unit of Measure | nvarchar(20) |
Key to join to the Unit of Measure table.Show/hide example querySELECT [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] | |||||||
10 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
11 | Inventory Posting Group | Inventory Posting Group | Normal | Code | 20 | Inventory Posting Group | nvarchar(40) |
Key to join to the Inventory Posting Group table.Show/hide example querySELECT [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] | |||||||
14 | Item Disc. Group | Item Disc. Group | Normal | Code | 20 | Item Disc_ Group | nvarchar(40) |
Key to join to the Item Discount Group table.Show/hide example querySELECT [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] | |||||||
15 | Allow Invoice Disc. | Allow Invoice Disc. | Normal | Boolean | 4 | Allow Invoice Disc_ | tinyint |
19 | Price/Profit Calculation | Price/Profit Calculation | Normal | Option | 4 | Price_Profit Calculation | int |
20 | Profit % | Profit % | Normal | Decimal | 12 | Profit _ | decimal(38,38) |
21 | Costing Method | Costing Method | Normal | Option | 4 | Costing Method | int |
Available options are:
| |||||||
28 | Indirect Cost % | Indirect Cost % | Normal | Decimal | 12 | Indirect Cost _ | decimal(38,38) |
87 | Price Includes VAT | Price Includes VAT | Normal | Boolean | 4 | Price Includes VAT | tinyint |
91 | Gen. Prod. Posting Group | Gen. Prod. Posting Group | Normal | Code | 20 | Gen_ Prod_ Posting Group | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [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] | |||||||
96 | Automatic Ext. Texts | Automatic Ext. Texts | Normal | Boolean | 4 | Automatic Ext_ Texts | tinyint |
98 | Tax Group Code | Tax Group Code | Normal | Code | 20 | 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] | |||||||
99 | VAT Prod. Posting Group | VAT Prod. Posting Group | Normal | Code | 20 | VAT Prod_ Posting Group | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [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] | |||||||
5702 | Item Category Code | Item Category Code | Normal | Code | 20 | 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] | |||||||
5900 | Service Item Group | Service Item Group | Normal | Code | 10 | 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] | |||||||
7300 | Warehouse Class Code | Warehouse Class Code | Normal | Code | 10 | 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] | |||||||
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [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] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |