Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/30105
Table Type: Company
Table Name: Shpfy Customer
Database Table Name: CRONUS UK Ltd_$Shpfy Customer$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 Customer can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Shpfy Customer$ec255f57-31d0-4ca2-b751-f2fa7c745abb]
Show/hide an example select of all columns by name
SELECT
[Id]
,[First Name]
,[Last Name]
,[Email]
,[Phone No_]
,[Accepts Marketing]
,[Accepts Marketing Update At]
,[ISO Currency Code]
,[Tax Exempt]
,[Verified Email]
,[State]
,[Note]
,[Created At]
,[Updated At]
,[Last Updated by BC]
,[Shop Id]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Shpfy Customer$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 Customer$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Customer]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Customer].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Customer].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Shpfy Customer table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Id | Id | Normal | BigInteger | 8 | Id | bigint |
2 | First Name | First Name | Normal | Text | 100 | First Name | nvarchar(200) |
3 | Last Name | Last Name | Normal | Text | 100 | Last Name | nvarchar(200) |
4 | Normal | Text | 100 | nvarchar(200) | |||
5 | Phone No. | Phone No. | Normal | Text | 30 | Phone No_ | nvarchar(60) |
6 | Accepts Marketing | Accepts Marketing | Normal | Boolean | 4 | Accepts Marketing | tinyint |
7 | Accepts Marketing Update At | Accepts Marketing Update At | Normal | DateTime | 8 | Accepts Marketing Update At | datetime |
8 | ISO Currency Code | ISO Currency Code | Normal | Code | 3 | ISO Currency Code | nvarchar(6) |
9 | Tax Exempt | Tax Exempt | Normal | Boolean | 4 | Tax Exempt | tinyint |
10 | Verified Email | Verified E-Mail | Normal | Boolean | 4 | Verified Email | tinyint |
11 | State | State | Normal | Option | 4 | State | int |
Available options are:
| |||||||
12 | Note | Note | Normal | BLOB | 8 | Note | image |
13 | Created At | Created At | Normal | DateTime | 8 | Created At | datetime |
14 | Updated At | Updated At | Normal | DateTime | 8 | Updated At | datetime |
15 | Last Updated by BC | Last Updated by BC | Normal | DateTime | 8 | Last Updated by BC | datetime |
101 | Customer SystemId | Customer SystemId | Normal | GUID | 16 | ||
102 | Customer No. | Customer No. | FlowField | Code | 20 | ||
Key to join to the Customer table.Show/hide example querySELECT [Shpfy Customer].[] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Shpfy Customer$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Customer] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Shpfy Customer].[] = [Customer].[No_] | |||||||
103 | Shop Id | Shop ID | Normal | Integer | 4 | Shop Id | int |
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 Customer].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Shpfy Customer$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Customer] LEFT JOIN [User] AS [User] ON [Shpfy Customer].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |