Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2110
Table Type: Company
Table Name: O365 Sales Initial Setup
Database Table Name: CRONUS UK Ltd_$O365 Sales Initial 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 O365 Sales Initial Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Payment Reg_ Template Name]
,[Payment Reg_ Batch Name]
,[Is initialized]
,[Default Customer Template]
,[Default Item Template]
,[Default Payment Terms Code]
,[Default Payment Method Code]
,[Sales Invoice No_ Series]
,[Posted Sales Inv_ No_ Series]
,[Tax Type]
,[Default VAT Bus_ Posting Group]
,[Normal VAT Prod_ Posting Gr_]
,[Reduced VAT Prod_ Posting Gr_]
,[Zero VAT Prod_ Posting Gr_]
,[C2Graph Endpoint]
,[Sales Quote No_ Series]
,[Engage Endpoint]
,[Coupons Integration Enabled]
,[Graph Enablement Reminder]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$O365 Sales Initial 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_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup]
LEFT JOIN
[CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
ON
[O365 Sales Initial Setup].[Default Payment Terms Code] = [Payment Terms].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Payment Method$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Payment Method]
ON
[O365 Sales Initial Setup].[Default Payment Method Code] = [Payment Method].[Code]
LEFT JOIN
[User] AS [User]
ON
[O365 Sales Initial Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[O365 Sales Initial Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in O365 Sales Initial 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 | Payment Reg. Template Name | Payment Reg. Template Name | Normal | Code | 10 | Payment Reg_ Template Name | nvarchar(20) |
Key to join to the Gen. Journal Template table.Show/hide example querySELECT [O365 Sales Initial Setup].[Payment Reg_ Template Name] ,[Gen. Journal Template].[Name] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Journal Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Journal Template] ON [O365 Sales Initial Setup].[Payment Reg_ Template Name] = [Gen. Journal Template].[Name] | |||||||
3 | Payment Reg. Batch Name | Payment Reg. Batch Name | Normal | Code | 10 | Payment Reg_ Batch Name | nvarchar(20) |
4 | Is initialized | Is initialized | Normal | Boolean | 4 | Is initialized | tinyint |
5 | Default Customer Template | Default Customer Template | Normal | Code | 10 | Default Customer Template | nvarchar(20) |
6 | Default Item Template | Default Item Template | Normal | Code | 10 | Default Item Template | nvarchar(20) |
7 | Default Payment Terms Code | Default Payment Terms Code | Normal | Code | 10 | Default Payment Terms Code | nvarchar(20) |
Key to join to the Payment Terms table.Show/hide example querySELECT [O365 Sales Initial Setup].[Default Payment Terms Code] ,[Payment Terms].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms] ON [O365 Sales Initial Setup].[Default Payment Terms Code] = [Payment Terms].[Code] | |||||||
8 | Default Payment Method Code | Default Payment Method Code | Normal | Code | 10 | Default Payment Method Code | nvarchar(20) |
Key to join to the Payment Method table.Show/hide example querySELECT [O365 Sales Initial Setup].[Default Payment Method Code] ,[Payment Method].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$Payment Method$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Payment Method] ON [O365 Sales Initial Setup].[Default Payment Method Code] = [Payment Method].[Code] | |||||||
9 | Sales Invoice No. Series | Sales Invoice No. Series | Normal | Code | 20 | Sales Invoice No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [O365 Sales Initial Setup].[Sales Invoice No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [O365 Sales Initial Setup].[Sales Invoice No_ Series] = [No. Series].[Code] | |||||||
10 | Posted Sales Inv. No. Series | Posted Sales Inv. No. Series | Normal | Code | 20 | Posted Sales Inv_ No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [O365 Sales Initial Setup].[Posted Sales Inv_ No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [O365 Sales Initial Setup].[Posted Sales Inv_ No_ Series] = [No. Series].[Code] | |||||||
11 | Tax Type | Tax Type | Normal | Option | 4 | Tax Type | int |
Available options are:
| |||||||
12 | Default VAT Bus. Posting Group | Default VAT Bus. Posting Group | Normal | Code | 20 | Default VAT Bus_ Posting Group | nvarchar(40) |
Key to join to the VAT Business Posting Group table.Show/hide example querySELECT [O365 Sales Initial Setup].[Default VAT Bus_ Posting Group] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [O365 Sales Initial Setup].[Default VAT Bus_ Posting Group] = [VAT Business Posting Group].[Code] | |||||||
13 | Normal VAT Prod. Posting Gr. | Normal Tax Prod. Posting Gr. | Normal | Code | 20 | Normal VAT Prod_ Posting Gr_ | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [O365 Sales Initial Setup].[Normal VAT Prod_ Posting Gr_] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [O365 Sales Initial Setup].[Normal VAT Prod_ Posting Gr_] = [VAT Product Posting Group].[Code] | |||||||
14 | Reduced VAT Prod. Posting Gr. | Reduced Tax Prod. Posting Gr. | Normal | Code | 20 | Reduced VAT Prod_ Posting Gr_ | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [O365 Sales Initial Setup].[Reduced VAT Prod_ Posting Gr_] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [O365 Sales Initial Setup].[Reduced VAT Prod_ Posting Gr_] = [VAT Product Posting Group].[Code] | |||||||
15 | Zero VAT Prod. Posting Gr. | Zero Tax Prod. Posting Gr. | Normal | Code | 20 | Zero VAT Prod_ Posting Gr_ | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [O365 Sales Initial Setup].[Zero VAT Prod_ Posting Gr_] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [O365 Sales Initial Setup].[Zero VAT Prod_ Posting Gr_] = [VAT Product Posting Group].[Code] | |||||||
16 | C2Graph Endpoint | C2Graph Endpoint | Normal | Text | 250 | C2Graph Endpoint | nvarchar(500) |
17 | Sales Quote No. Series | Sales Quote No. Series | Normal | Code | 20 | Sales Quote No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [O365 Sales Initial Setup].[Sales Quote No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [O365 Sales Initial Setup].[Sales Quote No_ Series] = [No. Series].[Code] | |||||||
18 | Engage Endpoint | Engage Endpoint | Normal | Text | 250 | Engage Endpoint | nvarchar(500) |
19 | Coupons Integration Enabled | Coupons Integration Enabled | Normal | Boolean | 4 | Coupons Integration Enabled | tinyint |
20 | Graph Enablement Reminder | Graph Enablement Reminder | Normal | Boolean | 4 | Graph Enablement Reminder | 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 [O365 Sales Initial Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$O365 Sales Initial Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Sales Initial Setup] LEFT JOIN [User] AS [User] ON [O365 Sales Initial Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |