Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5105
Table Type: Company
Table Name: Customer Template
Database Table Name: CRONUS UK Ltd_$Customer 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 Customer Template can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[Code]
,[Description]
,[Territory Code]
,[Global Dimension 1 Code]
,[Global Dimension 2 Code]
,[Customer Posting Group]
,[Currency Code]
,[Customer Price Group]
,[Payment Terms Code]
,[Shipment Method Code]
,[Invoice Disc_ Code]
,[Customer Disc_ Group]
,[Country_Region Code]
,[Payment Method Code]
,[Prices Including VAT]
,[Gen_ Bus_ Posting Group]
,[VAT Bus_ Posting Group]
,[Contact Type]
,[Allow Line Disc_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Customer 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_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Territory$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Territory]
ON
[Customer Template].[Territory Code] = [Territory].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group]
ON
[Customer Template].[Customer Posting Group] = [Customer Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Customer Template].[Currency Code] = [Currency].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Price Group]
ON
[Customer Template].[Customer Price Group] = [Customer Price Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
ON
[Customer Template].[Payment Terms Code] = [Payment Terms].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
ON
[Customer Template].[Shipment Method Code] = [Shipment Method].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Customer Discount Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Discount Group]
ON
[Customer Template].[Customer Disc_ Group] = [Customer Discount Group].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Customer Template].[Country_Region Code] = [Country_Region].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Payment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Method]
ON
[Customer Template].[Payment Method Code] = [Payment Method].[Code]
Show/hide columns in Customer Template table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Code ![]() ![]() | nvarchar(20) | ||||
3 | Description ![]() | nvarchar(200) | ||||
4 | Territory Code ![]() | nvarchar(20) | ||||
Key to join to the Territory table.Show/hide example querySELECT
[Customer Template].[Territory Code]
,[Territory].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Territory$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Territory]
ON
[Customer Template].[Territory Code] = [Territory].[Code] | ||||||
5 | Global Dimension 1 Code ![]() | nvarchar(40) | ||||
6 | Global Dimension 2 Code ![]() | nvarchar(40) | ||||
7 | Customer Posting Group ![]() | nvarchar(40) | ||||
Key to join to the Customer Posting Group table.Show/hide example querySELECT
[Customer Template].[Customer Posting Group]
,[Customer Posting Group].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group]
ON
[Customer Template].[Customer Posting Group] = [Customer Posting Group].[Code] | ||||||
8 | Currency Code ![]() | nvarchar(20) | ||||
Key to join to the Currency table.Show/hide example querySELECT
[Customer Template].[Currency Code]
,[Currency].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Customer Template].[Currency Code] = [Currency].[Code] | ||||||
9 | Customer Price Group ![]() | nvarchar(20) | ||||
Key to join to the Customer Price Group table.Show/hide example querySELECT
[Customer Template].[Customer Price Group]
,[Customer Price Group].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Price Group]
ON
[Customer Template].[Customer Price Group] = [Customer Price Group].[Code] | ||||||
10 | Payment Terms Code ![]() | nvarchar(20) | ||||
Key to join to the Payment Terms table.Show/hide example querySELECT
[Customer Template].[Payment Terms Code]
,[Payment Terms].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
ON
[Customer Template].[Payment Terms Code] = [Payment Terms].[Code] | ||||||
11 | Shipment Method Code ![]() | nvarchar(20) | ||||
Key to join to the Shipment Method table.Show/hide example querySELECT
[Customer Template].[Shipment Method Code]
,[Shipment Method].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
ON
[Customer Template].[Shipment Method Code] = [Shipment Method].[Code] | ||||||
12 | Invoice Disc_ Code ![]() | nvarchar(40) | ||||
13 | Customer Disc_ Group ![]() | nvarchar(40) | ||||
Key to join to the Customer Discount Group table.Show/hide example querySELECT
[Customer Template].[Customer Disc_ Group]
,[Customer Discount Group].[No_]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Customer Discount Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Discount Group]
ON
[Customer Template].[Customer Disc_ Group] = [Customer Discount Group].[No_] | ||||||
14 | Country_Region Code ![]() | nvarchar(20) | ||||
Key to join to the Country_Region table.Show/hide example querySELECT
[Customer Template].[Country_Region Code]
,[Country_Region].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Customer Template].[Country_Region Code] = [Country_Region].[Code] | ||||||
15 | Payment Method Code ![]() | nvarchar(20) | ||||
Key to join to the Payment Method table.Show/hide example querySELECT
[Customer Template].[Payment Method Code]
,[Payment Method].[Code]
FROM
[CRONUS UK Ltd_$Customer Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Template]
LEFT JOIN
[CRONUS UK Ltd_$Payment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Method]
ON
[Customer Template].[Payment Method Code] = [Payment Method].[Code] | ||||||
16 | Prices Including VAT ![]() | tinyint | ||||
17 | Gen_ Bus_ Posting Group ![]() | nvarchar(40) | ||||
18 | VAT Bus_ Posting Group ![]() | nvarchar(40) | ||||
19 | Contact Type ![]() | int | ||||
20 | Allow Line Disc_ ![]() | tinyint | ||||
21 | $systemId ![]() | uniqueidentifier | ||||
22 | $systemCreatedAt ![]() | datetime | ||||
23 | $systemCreatedBy ![]() | uniqueidentifier | ||||
24 | $systemModifiedAt ![]() | datetime | ||||
25 | $systemModifiedBy ![]() | uniqueidentifier |