Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/90
Table Type: Company
Table Name: BOM Component
Database Table Name: CRONUS UK Ltd_$BOM 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 BOM Component can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$BOM Component$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Parent Item No_]
,[Line No_]
,[Type]
,[No_]
,[Description]
,[Unit of Measure Code]
,[Quantity per]
,[Position]
,[Position 2]
,[Position 3]
,[Machine No_]
,[Lead-Time Offset]
,[Resource Usage Type]
,[Variant Code]
,[Installed in Line No_]
,[Installed in Item No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$BOM 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_$BOM Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [BOM Component]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[BOM Component].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[User] AS [User]
ON
[BOM Component].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[BOM Component].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in BOM Component table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Parent Item No. | Parent Item No. | Normal | Code | 20 | Parent Item No_ | nvarchar(40) |
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
4 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
5 | Assembly BOM | Assembly BOM | FlowField | Boolean | 4 | ||
6 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
7 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
8 | Quantity per | Quantity per | Normal | Decimal | 12 | Quantity per | decimal(38,38) |
9 | Position | Position | Normal | Code | 10 | Position | nvarchar(20) |
10 | Position 2 | Position 2 | Normal | Code | 10 | Position 2 | nvarchar(20) |
11 | Position 3 | Position 3 | Normal | Code | 10 | Position 3 | nvarchar(20) |
12 | Machine No. | Machine No. | Normal | Code | 10 | Machine No_ | nvarchar(20) |
13 | Lead-Time Offset | Lead-Time Offset | Normal | DateFormula | 32 | Lead-Time Offset | varchar(32) |
14 | BOM Description | BOM Description | FlowField | Text | 100 | ||
20 | Resource Usage Type | Resource Usage Type | Normal | Option | 4 | Resource Usage Type | int |
Available options are:
| |||||||
5402 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [BOM Component].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$BOM Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [BOM Component] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [BOM Component].[Variant Code] = [Item Variant].[Code] | |||||||
5900 | Installed in Line No. | Installed in Line No. | Normal | Integer | 4 | Installed in Line No_ | int |
5901 | Installed in Item No. | Installed in Item No. | Normal | Code | 20 | Installed in Item No_ | nvarchar(40) |
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 [BOM Component].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$BOM Component$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [BOM Component] LEFT JOIN [User] AS [User] ON [BOM Component].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |