Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5941
Table Type: Company
Table Name: Service Item Component
Database Table Name: CRONUS UK Ltd_$Service Item Component$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 Service Item Component can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Service Item Component$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Parent Service Item No_]
,[Line No_]
,[Active]
,[Type]
,[No_]
,[Date Installed]
,[Variant Code]
,[Serial No_]
,[Description]
,[Description 2]
,[Service Order No_]
,[From Line No_]
,[Last Date Modified]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Service Item Component$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Service Item Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Component]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Service Item Component].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[User] AS [User]
ON
[Service Item Component].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Service Item Component].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Service Item Component table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Parent Service Item No. | Parent Service Item No. | Normal | Code | 20 | Parent Service Item No_ | nvarchar(40) |
Key to join to the Service Item table.Show/hide example querySELECT [Service Item Component].[Parent Service Item No_] ,[Service Item].[No_] FROM [CRONUS UK Ltd_$Service Item Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Component] LEFT JOIN [CRONUS UK Ltd_$Service Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item] ON [Service Item Component].[Parent Service Item No_] = [Service Item].[No_] | |||||||
3 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
4 | Active | Active | Normal | Boolean | 4 | Active | tinyint |
5 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
6 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
7 | Date Installed | Date Installed | Normal | Date | 4 | Date Installed | datetime |
8 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Service Item Component].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Service Item Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Component] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Service Item Component].[Variant Code] = [Item Variant].[Code] | |||||||
11 | Serial No. | Serial No. | Normal | Code | 50 | Serial No_ | nvarchar(100) |
12 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
13 | Description 2 | Description 2 | Normal | Text | 50 | Description 2 | nvarchar(100) |
15 | Service Order No. | Service Order No. | Normal | Code | 20 | Service Order No_ | nvarchar(40) |
16 | From Line No. | From Line No. | Normal | Integer | 4 | From Line No_ | int |
17 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
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 [Service Item Component].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Service Item Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Component] LEFT JOIN [User] AS [User] ON [Service Item Component].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |