Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5079
Table Type: Company
Table Name: Marketing Setup
Database Table Name: CRONUS UK Ltd_$Marketing Setup$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 Marketing Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Contact Nos_]
,[Campaign Nos_]
,[Segment Nos_]
,[To-do Nos_]
,[Opportunity Nos_]
,[Bus_ Rel_ Code for Customers]
,[Bus_ Rel_ Code for Vendors]
,[Bus_ Rel_ Code for Bank Accs_]
,[Bus_ Rel_ Code for Employees]
,[Inherit Salesperson Code]
,[Inherit Territory Code]
,[Inherit Country_Region Code]
,[Inherit Language Code]
,[Inherit Address Details]
,[Inherit Communication Details]
,[Default Salesperson Code]
,[Default Territory Code]
,[Default Country_Region Code]
,[Default Language Code]
,[Default Format Region]
,[Default Sales Cycle Code]
,[Attachment Storage Type]
,[Attachment Storage Location]
,[Autosearch for Duplicates]
,[Search Hit _]
,[Maintain Dupl_ Search Strings]
,[Mergefield Language ID]
,[Def_ Company Salutation Code]
,[Default Person Salutation Code]
,[Default Correspondence Type]
,[Queue Folder Path]
,[Queue Folder UID]
,[Storage Folder Path]
,[Storage Folder UID]
,[Default To-do Date Calculation]
,[Autodiscovery E-Mail Address]
,[Email Batch Size]
,[Exchange Service URL]
,[Exchange Account User Name]
,[Exchange Account Password Key]
,[Sync with Microsoft Graph]
,[WebHook Run Notification As]
,[Cust_ Template Company Code]
,[Cust_ Template Person Code]
,[Exchange Tenant Id Key]
,[Exchange Client Id]
,[Exchange Client Secret Key]
,[Email Logging Enabled]
,[Exchange Redirect URL]
,[Inherit Format Region]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup]
LEFT JOIN
[CRONUS UK Ltd_$Territory$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Territory]
ON
[Marketing Setup].[Default Territory Code] = [Territory].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language]
ON
[Marketing Setup].[Default Language Code] = [Language].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Sales Cycle$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle]
ON
[Marketing Setup].[Default Sales Cycle Code] = [Sales Cycle].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Salutation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salutation]
ON
[Marketing Setup].[Default Person Salutation Code] = [Salutation].[Code]
LEFT JOIN
[User] AS [User]
ON
[Marketing Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Marketing Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Marketing Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Code | 10 | Primary Key | nvarchar(20) |
2 | Contact Nos. | Contact Nos. | Normal | Code | 20 | Contact Nos_ | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Marketing Setup].[Contact Nos_] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Marketing Setup].[Contact Nos_] = [No. Series].[Code] | |||||||
3 | Campaign Nos. | Campaign Nos. | Normal | Code | 20 | Campaign Nos_ | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Marketing Setup].[Campaign Nos_] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Marketing Setup].[Campaign Nos_] = [No. Series].[Code] | |||||||
4 | Segment Nos. | Segment Nos. | Normal | Code | 20 | Segment Nos_ | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Marketing Setup].[Segment Nos_] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Marketing Setup].[Segment Nos_] = [No. Series].[Code] | |||||||
5 | To-do Nos. | Task Nos. | Normal | Code | 20 | To-do Nos_ | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Marketing Setup].[To-do Nos_] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Marketing Setup].[To-do Nos_] = [No. Series].[Code] | |||||||
6 | Opportunity Nos. | Opportunity Nos. | Normal | Code | 20 | Opportunity Nos_ | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Marketing Setup].[Opportunity Nos_] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Marketing Setup].[Opportunity Nos_] = [No. Series].[Code] | |||||||
7 | Bus. Rel. Code for Customers | Bus. Rel. Code for Customers | Normal | Code | 10 | Bus_ Rel_ Code for Customers | nvarchar(20) |
Key to join to the Business Relation table.Show/hide example querySELECT [Marketing Setup].[Bus_ Rel_ Code for Customers] ,[Business Relation].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Business Relation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Relation] ON [Marketing Setup].[Bus_ Rel_ Code for Customers] = [Business Relation].[Code] | |||||||
8 | Bus. Rel. Code for Vendors | Bus. Rel. Code for Vendors | Normal | Code | 10 | Bus_ Rel_ Code for Vendors | nvarchar(20) |
Key to join to the Business Relation table.Show/hide example querySELECT [Marketing Setup].[Bus_ Rel_ Code for Vendors] ,[Business Relation].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Business Relation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Relation] ON [Marketing Setup].[Bus_ Rel_ Code for Vendors] = [Business Relation].[Code] | |||||||
9 | Bus. Rel. Code for Bank Accs. | Bus. Rel. Code for Bank Accs. | Normal | Code | 10 | Bus_ Rel_ Code for Bank Accs_ | nvarchar(20) |
Key to join to the Business Relation table.Show/hide example querySELECT [Marketing Setup].[Bus_ Rel_ Code for Bank Accs_] ,[Business Relation].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Business Relation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Relation] ON [Marketing Setup].[Bus_ Rel_ Code for Bank Accs_] = [Business Relation].[Code] | |||||||
10 | Bus. Rel. Code for Employees | Bus. Rel. Code for Employees | Normal | Code | 10 | Bus_ Rel_ Code for Employees | nvarchar(20) |
Key to join to the Business Relation table.Show/hide example querySELECT [Marketing Setup].[Bus_ Rel_ Code for Employees] ,[Business Relation].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Business Relation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Relation] ON [Marketing Setup].[Bus_ Rel_ Code for Employees] = [Business Relation].[Code] | |||||||
22 | Inherit Salesperson Code | Inherit Salesperson Code | Normal | Boolean | 4 | Inherit Salesperson Code | tinyint |
23 | Inherit Territory Code | Inherit Territory Code | Normal | Boolean | 4 | Inherit Territory Code | tinyint |
24 | Inherit Country/Region Code | Inherit Country/Region Code | Normal | Boolean | 4 | Inherit Country_Region Code | tinyint |
25 | Inherit Language Code | Inherit Language Code | Normal | Boolean | 4 | Inherit Language Code | tinyint |
26 | Inherit Address Details | Inherit Address Details | Normal | Boolean | 4 | Inherit Address Details | tinyint |
27 | Inherit Communication Details | Inherit Communication Details | Normal | Boolean | 4 | Inherit Communication Details | tinyint |
28 | Default Salesperson Code | Default Salesperson Code | Normal | Code | 20 | Default Salesperson Code | nvarchar(40) |
29 | Default Territory Code | Default Territory Code | Normal | Code | 10 | Default Territory Code | nvarchar(20) |
Key to join to the Territory table.Show/hide example querySELECT [Marketing Setup].[Default Territory Code] ,[Territory].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Territory$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Territory] ON [Marketing Setup].[Default Territory Code] = [Territory].[Code] | |||||||
30 | Default Country/Region Code | Default Country/Region Code | Normal | Code | 10 | Default Country_Region Code | nvarchar(20) |
31 | Default Language Code | Default Language Code | Normal | Code | 10 | Default Language Code | nvarchar(20) |
Key to join to the Language table.Show/hide example querySELECT [Marketing Setup].[Default Language Code] ,[Language].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language] ON [Marketing Setup].[Default Language Code] = [Language].[Code] | |||||||
32 | Default Format Region | Default Format Region | Normal | Text | 80 | Default Format Region | nvarchar(160) |
33 | Default Sales Cycle Code | Default Sales Cycle Code | Normal | Code | 10 | Default Sales Cycle Code | nvarchar(20) |
Key to join to the Sales Cycle table.Show/hide example querySELECT [Marketing Setup].[Default Sales Cycle Code] ,[Sales Cycle].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Sales Cycle$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle] ON [Marketing Setup].[Default Sales Cycle Code] = [Sales Cycle].[Code] | |||||||
35 | Attachment Storage Type | Attachment Storage Type | Normal | Option | 4 | Attachment Storage Type | int |
Available options are:
| |||||||
36 | Attachment Storage Location | Attachment Storage Location | Normal | Text | 250 | Attachment Storage Location | nvarchar(500) |
37 | Autosearch for Duplicates | Autosearch for Duplicates | Normal | Boolean | 4 | Autosearch for Duplicates | tinyint |
38 | Search Hit % | Search Hit % | Normal | Integer | 4 | Search Hit _ | int |
39 | Maintain Dupl. Search Strings | Maintain Dupl. Search Strings | Normal | Boolean | 4 | Maintain Dupl_ Search Strings | tinyint |
50 | Mergefield Language ID | Mergefield Language ID | Normal | Integer | 4 | Mergefield Language ID | int |
51 | Def. Company Salutation Code | Def. Company Salutation Code | Normal | Code | 10 | Def_ Company Salutation Code | nvarchar(20) |
Key to join to the Salutation table.Show/hide example querySELECT [Marketing Setup].[Def_ Company Salutation Code] ,[Salutation].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Salutation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salutation] ON [Marketing Setup].[Def_ Company Salutation Code] = [Salutation].[Code] | |||||||
52 | Default Person Salutation Code | Default Person Salutation Code | Normal | Code | 10 | Default Person Salutation Code | nvarchar(20) |
Key to join to the Salutation table.Show/hide example querySELECT [Marketing Setup].[Default Person Salutation Code] ,[Salutation].[Code] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [CRONUS UK Ltd_$Salutation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salutation] ON [Marketing Setup].[Default Person Salutation Code] = [Salutation].[Code] | |||||||
53 | Default Correspondence Type | Default Correspondence Type | Normal | Option | 4 | Default Correspondence Type | int |
Available options are:
| |||||||
56 | Queue Folder Path | Queue Folder Path | Normal | Text | 250 | Queue Folder Path | nvarchar(500) |
57 | Queue Folder UID | Queue Folder UID | Normal | BLOB | 8 | Queue Folder UID | image |
59 | Storage Folder Path | Storage Folder Path | Normal | Text | 250 | Storage Folder Path | nvarchar(500) |
60 | Storage Folder UID | Storage Folder UID | Normal | BLOB | 8 | Storage Folder UID | image |
67 | Default To-do Date Calculation | Default Task Date Calculation | Normal | DateFormula | 32 | Default To-do Date Calculation | varchar(32) |
69 | Autodiscovery E-Mail Address | Autodiscovery Email Address | Normal | Text | 250 | Autodiscovery E-Mail Address | nvarchar(500) |
70 | Email Batch Size | Email Batch Size | Normal | Integer | 4 | Email Batch Size | int |
71 | Exchange Service URL | Exchange Service URL | Normal | Text | 250 | Exchange Service URL | nvarchar(500) |
72 | Exchange Account User Name | Exchange Account User Name | Normal | Text | 250 | Exchange Account User Name | nvarchar(500) |
73 | Exchange Account Password Key | Exchange Account Password Key | Normal | GUID | 16 | Exchange Account Password Key | uniqueidentifier |
74 | Sync with Microsoft Graph | Sync with Microsoft Graph | Normal | Boolean | 4 | Sync with Microsoft Graph | tinyint |
75 | WebHook Run Notification As | WebHook Run Notification As | Normal | GUID | 16 | WebHook Run Notification As | uniqueidentifier |
76 | Cust. Template Company Code | Cust. Template Company Code | Normal | Code | 10 | Cust_ Template Company Code | nvarchar(20) |
77 | Cust. Template Person Code | Cust. Template Person Code | Normal | Code | 10 | Cust_ Template Person Code | nvarchar(20) |
78 | Exchange Tenant Id Key | Exchange Tenant Id Key | Normal | GUID | 16 | Exchange Tenant Id Key | uniqueidentifier |
79 | Exchange Client Id | Exchange Client Id | Normal | Text | 250 | Exchange Client Id | nvarchar(500) |
80 | Exchange Client Secret Key | Exchange Client Secret Key | Normal | GUID | 16 | Exchange Client Secret Key | uniqueidentifier |
81 | Email Logging Enabled | Email Logging Enabled | Normal | Boolean | 4 | Email Logging Enabled | tinyint |
82 | Exchange Redirect URL | Exchange Redirect URL | Normal | Text | 2048 | Exchange Redirect URL | nvarchar(4096) |
83 | Inherit Format Region | Inherit Format Region | Normal | Boolean | 4 | Inherit Format Region | tinyint |
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 [Marketing Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Marketing Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Marketing Setup] LEFT JOIN [User] AS [User] ON [Marketing Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |