Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5080
Table Type: Company
Table Name: To-do
Database Table Name: CRONUS UK Ltd_$To-do$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 To-do can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Team Code]
,[Salesperson Code]
,[Campaign No_]
,[Contact No_]
,[Opportunity No_]
,[Segment No_]
,[Type]
,[Date]
,[Status]
,[Priority]
,[Description]
,[Closed]
,[Date Closed]
,[No_ Series]
,[Canceled]
,[Contact Company No_]
,[Recurring]
,[Recurring Date Interval]
,[Calc_ Due Date From]
,[Start Time]
,[Duration]
,[Opportunity Entry No_]
,[Last Date Modified]
,[Last Time Modified]
,[All Day Event]
,[Location]
,[Organizer To-do No_]
,[Interaction Template Code]
,[Language Code]
,[Attachment No_]
,[Subject]
,[Unit Cost (LCY)]
,[Unit Duration (Min_)]
,[Completed By]
,[Ending Date]
,[Ending Time]
,[Wizard Step]
,[Team To-do]
,[Send on finish]
,[Segment Description]
,[Team Meeting Organizer]
,[Activity Code]
,[Wizard Contact Name]
,[Wizard Campaign Description]
,[Wizard Opportunity Description]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do]
LEFT JOIN
[CRONUS UK Ltd_$Team$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Team]
ON
[To-do].[Team Code] = [Team].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser]
ON
[To-do].[Salesperson Code] = [Salesperson/Purchaser].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Interaction Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Interaction Template]
ON
[To-do].[Interaction Template Code] = [Interaction Template].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language]
ON
[To-do].[Language Code] = [Language].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser]
ON
[To-do].[Completed By] = [Salesperson/Purchaser].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[To-do].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[CRONUS UK Ltd_$Activity$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Activity]
ON
[To-do].[Activity Code] = [Activity].[Code]
LEFT JOIN
[User] AS [User]
ON
[To-do].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[To-do].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in To-do table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
2 | Team Code | Team Code | Normal | Code | 10 | Team Code | nvarchar(20) |
Key to join to the Team table.Show/hide example querySELECT [To-do].[Team Code] ,[Team].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Team$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Team] ON [To-do].[Team Code] = [Team].[Code] | |||||||
3 | Salesperson Code | Salesperson Code | Normal | Code | 20 | Salesperson Code | nvarchar(40) |
Key to join to the Salesperson/Purchaser table.Show/hide example querySELECT [To-do].[Salesperson Code] ,[Salesperson/Purchaser].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser] ON [To-do].[Salesperson Code] = [Salesperson/Purchaser].[Code] | |||||||
4 | Campaign No. | Campaign No. | Normal | Code | 20 | Campaign No_ | nvarchar(40) |
Key to join to the Campaign table.Show/hide example querySELECT [To-do].[Campaign No_] ,[Campaign].[No_] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] ON [To-do].[Campaign No_] = [Campaign].[No_] | |||||||
5 | Contact No. | Contact No. | Normal | Code | 20 | Contact No_ | nvarchar(40) |
Key to join to the Contact table.Show/hide example querySELECT [To-do].[Contact No_] ,[Contact].[No_] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Contact$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact] ON [To-do].[Contact No_] = [Contact].[No_] | |||||||
6 | Opportunity No. | Opportunity No. | Normal | Code | 20 | Opportunity No_ | nvarchar(40) |
Key to join to the Opportunity table.Show/hide example querySELECT [To-do].[Opportunity No_] ,[Opportunity].[No_] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Opportunity$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Opportunity] ON [To-do].[Opportunity No_] = [Opportunity].[No_] | |||||||
7 | Segment No. | Segment No. | Normal | Code | 20 | Segment No_ | nvarchar(40) |
Key to join to the Segment Header table.Show/hide example querySELECT [To-do].[Segment No_] ,[Segment Header].[No_] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] ON [To-do].[Segment No_] = [Segment Header].[No_] | |||||||
8 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
9 | Date | Date | Normal | Date | 4 | Date | datetime |
10 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
11 | Priority | Priority | Normal | Option | 4 | Priority | int |
Available options are:
| |||||||
12 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
13 | Closed | Closed | Normal | Boolean | 4 | Closed | tinyint |
14 | Date Closed | Date Closed | Normal | Date | 4 | Date Closed | datetime |
15 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [To-do].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [To-do].[No_ Series] = [No. Series].[Code] | |||||||
16 | Comment | Comment | FlowField | Boolean | 4 | ||
17 | Canceled | Canceled | Normal | Boolean | 4 | Canceled | tinyint |
18 | Contact Name | Contact Name | FlowField | Text | 100 | ||
19 | Team Name | Team Name | FlowField | Text | 50 | ||
20 | Salesperson Name | Salesperson Name | FlowField | Text | 50 | ||
21 | Campaign Description | Campaign Description | FlowField | Text | 100 | ||
22 | Contact Company No. | Contact Company No. | Normal | Code | 20 | Contact Company No_ | nvarchar(40) |
23 | Contact Company Name | Contact Company Name | FlowField | Text | 100 | ||
24 | Recurring | Recurring | Normal | Boolean | 4 | Recurring | tinyint |
25 | Recurring Date Interval | Recurring Date Interval | Normal | DateFormula | 32 | Recurring Date Interval | varchar(32) |
26 | Calc. Due Date From | Calc. Due Date From | Normal | Option | 4 | Calc_ Due Date From | int |
Available options are:
| |||||||
27 | Opportunity Description | Opportunity Description | FlowField | Text | 100 | ||
28 | Start Time | Start Time | Normal | Time | 4 | Start Time | datetime |
29 | Duration | Duration | Normal | Duration | 8 | Duration | bigint |
31 | Opportunity Entry No. | Opportunity Entry No. | Normal | Integer | 4 | Opportunity Entry No_ | int |
Key to join to the Opportunity Entry table.Show/hide example querySELECT [To-do].[Opportunity Entry No_] ,[Opportunity Entry].[Entry No_] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Opportunity Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Opportunity Entry] ON [To-do].[Opportunity Entry No_] = [Opportunity Entry].[Entry No_] | |||||||
32 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
33 | Last Time Modified | Last Time Modified | Normal | Time | 4 | Last Time Modified | datetime |
34 | All Day Event | All Day Event | Normal | Boolean | 4 | All Day Event | tinyint |
35 | Location | Location | Normal | Text | 100 | Location | nvarchar(200) |
36 | Organizer To-do No. | Organizer Task No. | Normal | Code | 20 | Organizer To-do No_ | nvarchar(40) |
37 | Interaction Template Code | Interaction Template Code | Normal | Code | 10 | Interaction Template Code | nvarchar(20) |
Key to join to the Interaction Template table.Show/hide example querySELECT [To-do].[Interaction Template Code] ,[Interaction Template].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Interaction Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Interaction Template] ON [To-do].[Interaction Template Code] = [Interaction Template].[Code] | |||||||
38 | Language Code | Language Code | Normal | Code | 10 | Language Code | nvarchar(20) |
Key to join to the Language table.Show/hide example querySELECT [To-do].[Language Code] ,[Language].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language] ON [To-do].[Language Code] = [Language].[Code] | |||||||
39 | Attachment No. | Attachment No. | Normal | Integer | 4 | Attachment No_ | int |
Key to join to the Attachment table.Show/hide example querySELECT [To-do].[Attachment No_] ,[Attachment].[No_] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Attachment] ON [To-do].[Attachment No_] = [Attachment].[No_] | |||||||
40 | Subject | Subject | Normal | Text | 100 | Subject | nvarchar(200) |
41 | Unit Cost (LCY) | Unit Cost ($) | Normal | Decimal | 12 | Unit Cost (LCY) | decimal(38,38) |
42 | Unit Duration (Min.) | Unit Duration (Min.) | Normal | Decimal | 12 | Unit Duration (Min_) | decimal(38,38) |
43 | No. of Attendees | No. of Attendees | FlowField | Integer | 4 | ||
44 | Attendees Accepted No. | Attendees Accepted No. | FlowField | Integer | 4 | ||
45 | System To-do Type | System Task Type | Normal | Option | 4 | ||
46 | Completed By | Completed By | Normal | Code | 20 | Completed By | nvarchar(40) |
Key to join to the Salesperson/Purchaser table.Show/hide example querySELECT [To-do].[Completed By] ,[Salesperson/Purchaser].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser] ON [To-do].[Completed By] = [Salesperson/Purchaser].[Code] | |||||||
47 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [To-do].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [To-do].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
48 | Ending Time | Ending Time | Normal | Time | 4 | Ending Time | datetime |
9501 | Wizard Step | Wizard Step | Normal | Option | 4 | Wizard Step | int |
Available options are:
| |||||||
9504 | Team To-do | Team Task | Normal | Boolean | 4 | Team To-do | tinyint |
9505 | Send on finish | Send on finish | Normal | Boolean | 4 | Send on finish | tinyint |
9506 | Segment Description | Segment Description | Normal | Text | 100 | Segment Description | nvarchar(200) |
9507 | Team Meeting Organizer | Team Meeting Organizer | Normal | Code | 20 | Team Meeting Organizer | nvarchar(40) |
9508 | Activity Code | Activity Code | Normal | Code | 10 | Activity Code | nvarchar(20) |
Key to join to the Activity table.Show/hide example querySELECT [To-do].[Activity Code] ,[Activity].[Code] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [CRONUS UK Ltd_$Activity$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Activity] ON [To-do].[Activity Code] = [Activity].[Code] | |||||||
9509 | Wizard Contact Name | Wizard Contact Name | Normal | Text | 100 | Wizard Contact Name | nvarchar(200) |
9510 | Wizard Campaign Description | Wizard Campaign Description | Normal | Text | 100 | Wizard Campaign Description | nvarchar(200) |
9511 | Wizard Opportunity Description | Wizard Opportunity Description | Normal | Text | 100 | Wizard Opportunity Description | nvarchar(200) |
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 [To-do].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$To-do$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [To-do] LEFT JOIN [User] AS [User] ON [To-do].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |