Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5071
Table Type: Company
Table Name: Campaign
Database Table Name: CRONUS UK Ltd_$Campaign$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 Campaign can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Description]
,[Starting Date]
,[Ending Date]
,[Salesperson Code]
,[Last Date Modified]
,[No_ Series]
,[Global Dimension 1 Code]
,[Global Dimension 2 Code]
,[Status Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[Campaign].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser]
ON
[Campaign].[Salesperson Code] = [Salesperson/Purchaser].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Campaign].[Global Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Campaign].[Global Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Campaign Status$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign Status]
ON
[Campaign].[Status Code] = [Campaign Status].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Sales Cycle$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle]
ON
[Campaign].[Sales Cycle Filter] = [Sales Cycle].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Contact$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact]
ON
[Campaign].[Contact Filter] = [Contact].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Team$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Team]
ON
[Campaign].[Team Filter] = [Team].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser]
ON
[Campaign].[Salesperson Filter] = [Salesperson/Purchaser].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Close Opportunity Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Close Opportunity Code]
ON
[Campaign].[Close Opportunity Filter] = [Close Opportunity Code].[Code]
LEFT JOIN
[User] AS [User]
ON
[Campaign].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Campaign].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Campaign 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 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
3 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
4 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [Campaign].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [Campaign].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
5 | Salesperson Code | Salesperson Code | Normal | Code | 20 | Salesperson Code | nvarchar(40) |
Key to join to the Salesperson/Purchaser table.Show/hide example querySELECT [Campaign].[Salesperson Code] ,[Salesperson/Purchaser].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser] ON [Campaign].[Salesperson Code] = [Salesperson/Purchaser].[Code] | |||||||
6 | Comment | Comment | FlowField | Boolean | 4 | ||
7 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
8 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Campaign].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Campaign].[No_ Series] = [No. Series].[Code] | |||||||
9 | Global Dimension 1 Code | Global Dimension 1 Code | Normal | Code | 20 | Global Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Campaign].[Global Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Campaign].[Global Dimension 1 Code] = [Dimension].[Code] | |||||||
10 | Global Dimension 2 Code | Global Dimension 2 Code | Normal | Code | 20 | Global Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Campaign].[Global Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Campaign].[Global Dimension 2 Code] = [Dimension].[Code] | |||||||
11 | Status Code | Status Code | Normal | Code | 10 | Status Code | nvarchar(20) |
Key to join to the Campaign Status table.Show/hide example querySELECT [Campaign].[Status Code] ,[Campaign Status].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Campaign Status$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign Status] ON [Campaign].[Status Code] = [Campaign Status].[Code] | |||||||
12 | Target Contacts Contacted | Target Contacts Contacted | FlowField | Integer | 4 | ||
13 | Contacts Responded | Contacts Responded | FlowField | Integer | 4 | ||
14 | Duration (Min.) | Duration (Min.) | FlowField | Decimal | 12 | ||
16 | Cost (LCY) | Cost ($) | FlowField | Decimal | 12 | ||
17 | No. of Opportunities | No. of Opportunities | FlowField | Integer | 4 | ||
18 | Estimated Value (LCY) | Estimated Value ($) | FlowField | Decimal | 12 | ||
19 | Calcd. Current Value (LCY) | Calcd. Current Value ($) | FlowField | Decimal | 12 | ||
20 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
23 | Action Taken Filter | Action Taken Filter | FlowFilter | Option | 4 | ||
24 | Sales Cycle Filter | Sales Cycle Filter | FlowFilter | Code | 10 | ||
Key to join to the Sales Cycle table.Show/hide example querySELECT [Campaign].[] ,[Sales Cycle].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Sales Cycle$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle] ON [Campaign].[] = [Sales Cycle].[Code] | |||||||
25 | Sales Cycle Stage Filter | Sales Cycle Stage Filter | FlowFilter | Integer | 4 | ||
26 | Probability % Filter | Probability % Filter | FlowFilter | Decimal | 12 | ||
27 | Completed % Filter | Completed % Filter | FlowFilter | Decimal | 12 | ||
28 | Contact Filter | Contact Filter | FlowFilter | Code | 20 | ||
Key to join to the Contact table.Show/hide example querySELECT [Campaign].[] ,[Contact].[No_] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Contact$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact] ON [Campaign].[] = [Contact].[No_] | |||||||
29 | Contact Company Filter | Contact Company Filter | FlowFilter | Code | 20 | ||
30 | Estimated Value Filter | Estimated Value Filter | FlowFilter | Decimal | 12 | ||
31 | Calcd. Current Value Filter | Calcd. Current Value Filter | FlowFilter | Decimal | 12 | ||
32 | Chances of Success % Filter | Chances of Success % Filter | FlowFilter | Decimal | 12 | ||
33 | Task Status Filter | Task Status Filter | FlowFilter | Option | 4 | ||
34 | Task Closed Filter | Task Closed Filter | FlowFilter | Boolean | 4 | ||
35 | Priority Filter | Priority Filter | FlowFilter | Option | 4 | ||
36 | Team Filter | Team Filter | FlowFilter | Code | 10 | ||
Key to join to the Team table.Show/hide example querySELECT [Campaign].[] ,[Team].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Team$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Team] ON [Campaign].[] = [Team].[Code] | |||||||
37 | Salesperson Filter | Salesperson Filter | FlowFilter | Code | 20 | ||
Key to join to the Salesperson/Purchaser table.Show/hide example querySELECT [Campaign].[] ,[Salesperson/Purchaser].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser] ON [Campaign].[] = [Salesperson/Purchaser].[Code] | |||||||
38 | Opportunity Entry Exists | Opportunity Entry Exists | FlowField | Boolean | 4 | ||
39 | Task Entry Exists | Task Entry Exists | FlowField | Boolean | 4 | ||
40 | Close Opportunity Filter | Close Opportunity Filter | FlowFilter | Code | 10 | ||
Key to join to the Close Opportunity Code table.Show/hide example querySELECT [Campaign].[] ,[Close Opportunity Code].[Code] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [CRONUS UK Ltd_$Close Opportunity Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Close Opportunity Code] ON [Campaign].[] = [Close Opportunity Code].[Code] | |||||||
41 | Activated | Activated | FlowField | Boolean | 4 | ||
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 [Campaign].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] LEFT JOIN [User] AS [User] ON [Campaign].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |