Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/30124
Table Type: Company
Table Name: Shpfy Payment Transaction
Database Table Name: CRONUS UK Ltd_$Shpfy Payment Transaction$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 Payment Transaction can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Shpfy Payment Transaction$ec255f57-31d0-4ca2-b751-f2fa7c745abb]
Show/hide an example select of all columns by name
SELECT
[Id]
,[Type]
,[Test]
,[Payout Id]
,[Currency]
,[Amount]
,[Fee]
,[Net Amount]
,[Source Id]
,[Source Type]
,[Source Order Transaction Id]
,[Source Order Id]
,[Processed At]
,[Shop Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Shpfy Payment Transaction$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 Payment Transaction$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Payment Transaction]
LEFT JOIN
[CRONUS UK Ltd_$Shpfy Shop$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop]
ON
[Shpfy Payment Transaction].[Shop Code] = [Shpfy Shop].[Code]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Payment Transaction].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Shpfy Payment Transaction].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Shpfy Payment Transaction table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Id | Id | Normal | BigInteger | 8 | Id | bigint |
2 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
3 | Test | Test | Normal | Boolean | 4 | Test | tinyint |
4 | Payout Id | Payout Id | Normal | BigInteger | 8 | Payout Id | bigint |
5 | Currency | Currency | Normal | Code | 10 | Currency | nvarchar(20) |
6 | Amount | Amount | Normal | Decimal | 12 | Amount | decimal(38,38) |
7 | Fee | Fee | Normal | Decimal | 12 | Fee | decimal(38,38) |
8 | Net Amount | Net Amount | Normal | Decimal | 12 | Net Amount | decimal(38,38) |
9 | Source Id | Source Id | Normal | BigInteger | 8 | Source Id | bigint |
10 | Source Type | Source Type | Normal | Option | 4 | Source Type | int |
Available options are:
| |||||||
11 | Source Order Transaction Id | Source Order Transaction Id | Normal | BigInteger | 8 | Source Order Transaction Id | bigint |
12 | Source Order Id | Source Order Id | Normal | BigInteger | 8 | Source Order Id | bigint |
13 | Processed At | Processed At | Normal | DateTime | 8 | Processed At | datetime |
101 | Shop Code | Shop Code | Normal | Code | 20 | Shop Code | nvarchar(40) |
Key to join to the Shpfy Shop table.Show/hide example querySELECT [Shpfy Payment Transaction].[Shop Code] ,[Shpfy Shop].[Code] FROM [CRONUS UK Ltd_$Shpfy Payment Transaction$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Payment Transaction] LEFT JOIN [CRONUS UK Ltd_$Shpfy Shop$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop] ON [Shpfy Payment Transaction].[Shop Code] = [Shpfy Shop].[Code] | |||||||
102 | Invoice No. | Invoice No. | FlowField | Code | 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 Payment Transaction].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Shpfy Payment Transaction$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Payment Transaction] LEFT JOIN [User] AS [User] ON [Shpfy Payment Transaction].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |