Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/6
Table Type: Company
Table Name: Customer Price Group
Database Table Name: CRONUS UK Ltd_$Customer Price Group$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 Customer Price Group can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Code]
,[Price Includes VAT]
,[Allow Invoice Disc_]
,[VAT Bus_ Posting Gr_ (Price)]
,[Description]
,[Coupled to CRM]
,[Price Calculation Method]
,[Allow Line Disc_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Price Group]
LEFT JOIN
[User] AS [User]
ON
[Customer Price Group].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Customer Price Group].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Customer Price Group table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Code | Code | Normal | Code | 10 | Code | nvarchar(20) |
2 | Price Includes VAT | Price Includes Tax | Normal | Boolean | 4 | Price Includes VAT | tinyint |
5 | Allow Invoice Disc. | Allow Invoice Disc. | Normal | Boolean | 4 | Allow Invoice Disc_ | tinyint |
6 | VAT Bus. Posting Gr. (Price) | Tax Bus. Posting Gr. (Price) | Normal | Code | 20 | VAT Bus_ Posting Gr_ (Price) | nvarchar(40) |
Key to join to the VAT Business Posting Group table.Show/hide example querySELECT [Customer Price Group].[VAT Bus_ Posting Gr_ (Price)] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Price Group] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [Customer Price Group].[VAT Bus_ Posting Gr_ (Price)] = [VAT Business Posting Group].[Code] | |||||||
10 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
720 | Coupled to CRM | Coupled to Dynamics 365 Sales | Normal | Boolean | 4 | Coupled to CRM | tinyint |
721 | Coupled to Dataverse | Coupled to Dynamics 365 Sales | FlowField | Boolean | 4 | ||
7000 | Price Calculation Method | Price Calculation Method | Normal | Option | 4 | Price Calculation Method | int |
Available options are:
| |||||||
7001 | Allow Line Disc. | Allow Line Disc. | Normal | Boolean | 4 | Allow Line Disc_ | 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 [Customer Price Group].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Customer Price Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Price Group] LEFT JOIN [User] AS [User] ON [Customer Price Group].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |