Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/8619
Table Type: Company
Table Name: Config. Template Line
Database Table Name: CRONUS UK Ltd_$Config_ Template Line$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 Config. Template Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Data Template Code]
,[Line No_]
,[Type]
,[Field ID]
,[Field Name]
,[Table ID]
,[Template Code]
,[Mandatory]
,[Reference]
,[Default Value]
,[Skip Relation Check]
,[Language ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Line]
LEFT JOIN
[CRONUS UK Ltd_$Config_ Template Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Header]
ON
[Config. Template Line].[Data Template Code] = [Config. Template Header].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
ON
[Config. Template Line].[Table ID] = [Data Exch. Mapping].[Table ID]
LEFT JOIN
[CRONUS UK Ltd_$Config_ Template Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Header]
ON
[Config. Template Line].[Template Code] = [Config. Template Header].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language]
ON
[Config. Template Line].[Language ID] = [Language].[Windows Language ID]
LEFT JOIN
[User] AS [User]
ON
[Config. Template Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Config. Template Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Config. Template Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Data Template Code | Data Template Code | Normal | Code | 10 | Data Template Code | nvarchar(20) |
Key to join to the Config. Template Header table.Show/hide example querySELECT [Config. Template Line].[Data Template Code] ,[Config. Template Header].[Code] FROM [CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Line] LEFT JOIN [CRONUS UK Ltd_$Config_ Template Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Header] ON [Config. Template Line].[Data Template Code] = [Config. Template Header].[Code] | |||||||
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
4 | Field ID | Field ID | Normal | Integer | 4 | Field ID | int |
5 | Field Name | Field Name | Normal | Text | 30 | Field Name | nvarchar(60) |
6 | Table ID | Table ID | Normal | Integer | 4 | Table ID | int |
Key to join to the Data Exch. Mapping table.Show/hide example querySELECT [Config. Template Line].[Table ID] ,[Data Exch. Mapping].[Table ID] FROM [CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Line] LEFT JOIN [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping] ON [Config. Template Line].[Table ID] = [Data Exch. Mapping].[Table ID] | |||||||
7 | Table Name | Table Name | FlowField | Text | 250 | ||
8 | Template Code | Template Code | Normal | Code | 10 | Template Code | nvarchar(20) |
Key to join to the Config. Template Header table.Show/hide example querySELECT [Config. Template Line].[Template Code] ,[Config. Template Header].[Code] FROM [CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Line] LEFT JOIN [CRONUS UK Ltd_$Config_ Template Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Header] ON [Config. Template Line].[Template Code] = [Config. Template Header].[Code] | |||||||
9 | Template Description | Template Description | FlowField | Text | 100 | ||
10 | Mandatory | Mandatory | Normal | Boolean | 4 | Mandatory | tinyint |
11 | Reference | Reference | Normal | Text | 250 | Reference | nvarchar(500) |
12 | Default Value | Default Value | Normal | Text | 2048 | Default Value | nvarchar(4096) |
13 | Table Caption | Table Caption | FlowField | Text | 250 | ||
14 | Field Caption | Field Caption | FlowField | Text | 250 | ||
15 | Skip Relation Check | Skip Relation Check | Normal | Boolean | 4 | Skip Relation Check | tinyint |
16 | Language ID | Language ID | Normal | Integer | 4 | Language ID | int |
Key to join to the Language table.Show/hide example querySELECT [Config. Template Line].[Language ID] ,[Language].[Windows Language ID] FROM [CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Line] LEFT JOIN [CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language] ON [Config. Template Line].[Language ID] = [Language].[Windows Language ID] | |||||||
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 [Config. Template Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Config_ Template Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Config. Template Line] LEFT JOIN [User] AS [User] ON [Config. Template Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |