Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/30126
Table Type: Company
Table Name: Shpfy Inventory Item
Database Table Name: CRONUS UK Ltd_$Shpfy Inventory Item$ec255f57-31d0-4ca2-b751-f2fa7c745abb
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 Shpfy Inventory Item can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Shpfy Inventory Item$ec255f57-31d0-4ca2-b751-f2fa7c745abb]
Show/hide an example select of all columns by name
SELECT
[Id]
,[Variant Id]
,[Country_Region of Origin]
,[Create At]
,[History URL]
,[Province of Origin]
,[Requires Shipping]
,[Tracked]
,[Tracked Editable]
,[Tracked Reason]
,[Unit Cost]
,[Updated At]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Shpfy Inventory Item$ec255f57-31d0-4ca2-b751-f2fa7c745abb]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Shpfy Inventory Item$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Inventory Item]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Inventory Item].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Inventory Item].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Shpfy Inventory Item table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Id | Id | Normal | BigInteger | 8 | Id | bigint |
2 | Variant Id | Variant Id | Normal | BigInteger | 8 | Variant Id | bigint |
3 | Country/Region of Origin | Country/Region of Origin | Normal | Text | 50 | Country_Region of Origin | nvarchar(100) |
4 | Create At | Create At | Normal | DateTime | 8 | Create At | datetime |
5 | History URL | History URL | Normal | Text | 250 | History URL | nvarchar(500) |
6 | Province of Origin | Province of Origin | Normal | Text | 50 | Province of Origin | nvarchar(100) |
7 | Requires Shipping | Requires Shipping | Normal | Boolean | 4 | Requires Shipping | tinyint |
8 | Tracked | Tracked | Normal | Boolean | 4 | Tracked | tinyint |
9 | Tracked Editable | Tracked Editable | Normal | Boolean | 4 | Tracked Editable | tinyint |
10 | Tracked Reason | Tracked Reason | Normal | Text | 100 | Tracked Reason | nvarchar(200) |
11 | Unit Cost | Unit Cost | Normal | Decimal | 12 | Unit Cost | decimal(38,38) |
12 | Updated At | Updated At | Normal | DateTime | 8 | Updated At | 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 [Shpfy Inventory Item].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Shpfy Inventory Item$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Inventory Item] LEFT JOIN [User] AS [User] ON [Shpfy Inventory Item].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |