Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1207
Table Type: Company
Table Name: Direct Debit Collection
Database Table Name: CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Direct Debit Collection can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Identifier]
,[Created Date-Time]
,[Created by User]
,[Status]
,[To Bank Account No_]
,[Message ID]
,[Partner Type]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Debit Collection]
LEFT JOIN
[User] AS [User]
ON
[Direct Debit Collection].[Created By User] = [User].[User Name]
LEFT JOIN
[CRONUS UK Ltd_$Email Message$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Email Message]
ON
[Direct Debit Collection].[Message Id] = [Email Message].[Id]
LEFT JOIN
[User] AS [User]
ON
[Direct Debit Collection].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Direct Debit Collection].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Direct Debit Collection table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Integer | 4 | No_ | int |
2 | Identifier | Identifier | Normal | Code | 20 | Identifier | nvarchar(40) |
3 | Created Date-Time | Created Date-Time | Normal | DateTime | 8 | Created Date-Time | datetime |
4 | Created by User | Created by User | Normal | Code | 50 | Created by User | nvarchar(100) |
Key to join to the User table.Show/hide example querySELECT [Direct Debit Collection].[Created by User] ,[User].[User Name] FROM [CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Debit Collection] LEFT JOIN [User] AS [User] ON [Direct Debit Collection].[Created by User] = [User].[User Name] | |||||||
5 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
6 | No. of Transfers | No. of Transfers | FlowField | Integer | 4 | ||
7 | To Bank Account No. | To Bank Account No. | Normal | Code | 20 | To Bank Account No_ | nvarchar(40) |
Key to join to the Bank Account table.Show/hide example querySELECT [Direct Debit Collection].[To Bank Account No_] ,[Bank Account].[No_] FROM [CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Debit Collection] LEFT JOIN [CRONUS UK Ltd_$Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bank Account] ON [Direct Debit Collection].[To Bank Account No_] = [Bank Account].[No_] | |||||||
8 | To Bank Account Name | To Bank Account Name | FlowField | Text | 100 | ||
9 | Message ID | Message ID | Normal | Code | 35 | Message ID | nvarchar(70) |
Key to join to the Email Message table.Show/hide example querySELECT [Direct Debit Collection].[Message ID] ,[Email Message].[Id] FROM [CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Debit Collection] LEFT JOIN [CRONUS UK Ltd_$Email Message$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Email Message] ON [Direct Debit Collection].[Message ID] = [Email Message].[Id] | |||||||
10 | Partner Type | Partner Type | Normal | Option | 4 | Partner Type | int |
Available options are:
| |||||||
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 [Direct Debit Collection].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Direct Debit Collection$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Debit Collection] LEFT JOIN [User] AS [User] ON [Direct Debit Collection].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |