Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/30119
Table Type: Company
Table Name: Shpfy Order Line
Database Table Name: CRONUS UK Ltd_$Shpfy Order Line$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 Order Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Shpfy Order Line$ec255f57-31d0-4ca2-b751-f2fa7c745abb]
Show/hide an example select of all columns by name
SELECT
[Shopify Order Id]
,[Line Id]
,[Shopify Product Id]
,[Description]
,[Quantity]
,[Unit Price]
,[Discount Amount]
,[Shopify Variant Id]
,[Variant Description]
,[Fulfillment Service]
,[Taxable]
,[Gift Card]
,[Product Exists]
,[Fulfillable Quantity]
,[Tip]
,[Location Id]
,[Presentment Unit Price]
,[Presentment Discount Amount]
,[Item No_]
,[Variant Code]
,[Unit of Measure Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Shpfy Order Line$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 Order Line$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Line]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Shpfy Order Line].[Location Id] = [Location].[$systemId]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Shpfy Order Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Order Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Order Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Shpfy Order Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Shopify Order Id | Shopify Order Id | Normal | BigInteger | 8 | Shopify Order Id | bigint |
2 | Line Id | Line Id | Normal | BigInteger | 8 | Line Id | bigint |
3 | Shopify Product Id | Shopify Product Id | Normal | BigInteger | 8 | Shopify Product Id | bigint |
4 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
5 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
6 | Unit Price | Unit Price | Normal | Decimal | 12 | Unit Price | decimal(38,38) |
7 | Discount Amount | Discount Amount | Normal | Decimal | 12 | Discount Amount | decimal(38,38) |
8 | Shopify Variant Id | Shopify Variant Id | Normal | BigInteger | 8 | Shopify Variant Id | bigint |
9 | Variant Description | Variant Description | Normal | Text | 50 | Variant Description | nvarchar(100) |
11 | Fulfillment Service | Fulfillment Service | Normal | Text | 100 | Fulfillment Service | nvarchar(200) |
12 | Taxable | Taxable | Normal | Boolean | 4 | Taxable | tinyint |
13 | Gift Card | Gift Card | Normal | Boolean | 4 | Gift Card | tinyint |
14 | Product Exists | Product Exists | Normal | Boolean | 4 | Product Exists | tinyint |
15 | Fulfillable Quantity | Fulfillable Quantity | Normal | Decimal | 12 | Fulfillable Quantity | decimal(38,38) |
16 | Tip | Tip | Normal | Boolean | 4 | Tip | tinyint |
17 | Location Id | Location Id | Normal | BigInteger | 8 | Location Id | bigint |
Key to join to the Location table.Show/hide example querySELECT [Shpfy Order Line].[Location Id] ,[Location].[$systemId] FROM [CRONUS UK Ltd_$Shpfy Order Line$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Line] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Shpfy Order Line].[Location Id] = [Location].[$systemId] | |||||||
18 | Presentment Unit Price | Presentment Unit Price | Normal | Decimal | 12 | Presentment Unit Price | decimal(38,38) |
19 | Presentment Discount Amount | Presentment Discount Amount | Normal | Decimal | 12 | Presentment Discount Amount | decimal(38,38) |
1000 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Shpfy Order Line].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Shpfy Order Line$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Line] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Shpfy Order Line].[Item No_] = [Item].[No_] | |||||||
1001 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Shpfy Order Line].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Shpfy Order Line$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Line] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Shpfy Order Line].[Variant Code] = [Item Variant].[Code] | |||||||
1002 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
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 Order Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Shpfy Order Line$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Line] LEFT JOIN [User] AS [User] ON [Shpfy Order Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |