Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2850
Table Type: Company
Table Name: Native – API Tax Setup
Database Table Name: CRONUS UK Ltd_$Native – API Tax 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 Native – API Tax Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Native - API Tax Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
FROM
[CRONUS UK Ltd_$Native - API Tax 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_$Native - API Tax Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Native - API Tax Setup]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Native - API Tax Setup].[City] = [Post Code].[City]
LEFT JOIN
[User] AS [User]
ON
[Native - API Tax Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Native - API Tax Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Native – API Tax Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Code | Code | Normal | Code | 20 | Code | nvarchar(40) |
2 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
3 | Total Tax Percentage | Total Tax Percentage | Normal | Decimal | 12 | Total Tax Percentage | decimal(38,38) |
10 | Last Modified Date Time | Last Modified Date Time | Normal | DateTime | 8 | Last Modified Date Time | datetime |
20 | VAT Percentage | VAT Percentage | Normal | Decimal | 12 | VAT Percentage | decimal(38,38) |
21 | VAT Regulation Reference ID | VAT Regulation Reference ID | Normal | GUID | 16 | VAT Regulation Reference ID | uniqueidentifier |
22 | VAT Regulation Description | VAT Regulation Description | Normal | Text | 250 | VAT Regulation Description | nvarchar(500) |
30 | City | City | Normal | Text | 30 | City | nvarchar(60) |
Key to join to the Post Code table.Show/hide example querySELECT [Native - API Tax Setup].[City] ,[Post Code].[City] FROM [CRONUS UK Ltd_$Native - API Tax Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Native - API Tax Setup] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Native - API Tax Setup].[City] = [Post Code].[City] | |||||||
31 | City Rate | City Rate | Normal | Decimal | 12 | City Rate | decimal(38,38) |
32 | State | State | Normal | Code | 2 | State | nvarchar(4) |
33 | State Rate | State Rate | Normal | Decimal | 12 | State Rate | decimal(38,38) |
40 | GST or HST Code | GST or HST Code | Normal | Code | 10 | GST or HST Code | nvarchar(20) |
41 | GST or HST Description | GST or HST Description | Normal | Text | 50 | GST or HST Description | nvarchar(100) |
42 | GST or HST Rate | GST or HST Rate | Normal | Decimal | 12 | GST or HST Rate | decimal(38,38) |
45 | PST Code | PST Code | Normal | Code | 10 | PST Code | nvarchar(20) |
46 | PST Description | PST Description | Normal | Text | 50 | PST Description | nvarchar(100) |
47 | PST Rate | PST Rate | Normal | Decimal | 12 | PST Rate | decimal(38,38) |
100 | Default | Default | Normal | Boolean | 4 | Default | tinyint |
8000 | Id | Id | Normal | GUID | 16 | Id | uniqueidentifier |
9600 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
10010 | Country/Region | Country/Region | Normal | Option | 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 [Native - API Tax Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Native - API Tax Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Native - API Tax Setup] LEFT JOIN [User] AS [User] ON [Native - API Tax Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |