Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/30147
Table Type: Company
Table Name: Shpfy Return Header
Database Table Name: CRONUS UK Ltd_$Shpfy Return Header$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 Return Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb]
Show/hide an example select of all columns by name
SELECT
[Return Id]
,[Order Id]
,[Return No_]
,[Status]
,[Total Quantity]
,[Decline Reason]
,[Decline Note]
,[Shop Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Shpfy Return Header$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 Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header]
LEFT JOIN
[CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header]
ON
[Shpfy Return Header].[Return Id] = [Shpfy Return Header].[Return Id]
LEFT JOIN
[CRONUS UK Ltd_$Shpfy Order Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Header]
ON
[Shpfy Return Header].[Order Id] = [Shpfy Order Header].[Shopify Order Id]
LEFT JOIN
[CRONUS UK Ltd_$Shpfy Shop$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop]
ON
[Shpfy Return Header].[Shop Code] = [Shpfy Shop].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Shpfy Return Header].[Sell-to Customer Name] = [Customer].[Name]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Return Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Return Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Shpfy Return Header table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Return Id | Id | Normal | BigInteger | 8 | Return Id | bigint |
2 | Order Id | Order Id | Normal | BigInteger | 8 | Order Id | bigint |
Key to join to the Shpfy Order Header table.Show/hide example querySELECT [Shpfy Return Header].[Order Id] ,[Shpfy Order Header].[Shopify Order Id] FROM [CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header] LEFT JOIN [CRONUS UK Ltd_$Shpfy Order Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Order Header] ON [Shpfy Return Header].[Order Id] = [Shpfy Order Header].[Shopify Order Id] | |||||||
3 | Return No. | Return No. | Normal | Text | 30 | Return No_ | nvarchar(60) |
4 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
5 | Total Quantity | Total Quantity | Normal | Integer | 4 | Total Quantity | int |
6 | Decline Reason | Decline Reason | Normal | Option | 4 | Decline Reason | int |
Available options are:
| |||||||
7 | Decline Note | Decline Note | Normal | BLOB | 8 | Decline Note | image |
8 | Shop Code | Shop code | Normal | Code | 20 | Shop Code | nvarchar(40) |
Key to join to the Shpfy Shop table.Show/hide example querySELECT [Shpfy Return Header].[Shop Code] ,[Shpfy Shop].[Code] FROM [CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header] LEFT JOIN [CRONUS UK Ltd_$Shpfy Shop$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop] ON [Shpfy Return Header].[Shop Code] = [Shpfy Shop].[Code] | |||||||
12 | Discounted Total Amount | Discounted Total Amount | FlowField | Decimal | 12 | ||
13 | Presentment Disc. Total Amt. | Presentment Discounted Total Amount | FlowField | Decimal | 12 | ||
101 | Sell-to Customer No. | Sell-to Customer No. | FlowField | Code | 20 | ||
Key to join to the Customer table.Show/hide example querySELECT [Shpfy Return Header].[] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Shpfy Return Header].[] = [Customer].[No_] | |||||||
102 | Bill-to Customer No. | Bill-to Customer No. | FlowField | Code | 20 | ||
Key to join to the Customer table.Show/hide example querySELECT [Shpfy Return Header].[] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Shpfy Return Header].[] = [Customer].[No_] | |||||||
103 | Sell-to Customer Name | Sell-to Customer Name | FlowField | Text | 50 | ||
Key to join to the Customer table.Show/hide example querySELECT [Shpfy Return Header].[] ,[Customer].[Name] FROM [CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Shpfy Return Header].[] = [Customer].[Name] | |||||||
104 | Bill-to Customer Name | Bill-to Customer Name | FlowField | Text | 50 | ||
105 | Shopify Order No. | Shopify Order No. | FlowField | Text | 50 | ||
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 Return Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Shpfy Return Header$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Return Header] LEFT JOIN [User] AS [User] ON [Shpfy Return Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |