Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/780
Table Type: Company
Table Name: Certificate of Supply
Database Table Name: CRONUS UK Ltd_$Certificate of Supply$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 Certificate of Supply can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Certificate of Supply$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Document Type]
,[Document No_]
,[Status]
,[No_]
,[Receipt Date]
,[Printed]
,[Customer_Vendor Name]
,[Shipment Method Code]
,[Shipment_Posting Date]
,[Ship-to Country_Region Code]
,[Customer_Vendor No_]
,[Vehicle Registration No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Certificate of Supply$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Certificate of Supply$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Certificate of Supply]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Certificate of Supply].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Certificate of Supply].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Certificate of Supply].[Document Type] = [Sales Header].[Document Type]
AND
[Certificate of Supply].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
ON
[Certificate of Supply].[Shipment Method Code] = [Shipment Method].[Code]
LEFT JOIN
[User] AS [User]
ON
[Certificate of Supply].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Certificate of Supply].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Certificate of Supply table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
2 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
3 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
4 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
5 | Receipt Date | Receipt Date | Normal | Date | 4 | Receipt Date | datetime |
6 | Printed | Printed | Normal | Boolean | 4 | Printed | tinyint |
7 | Customer/Vendor Name | Customer/Vendor Name | Normal | Text | 100 | Customer_Vendor Name | nvarchar(200) |
8 | Shipment Method Code | Shipment Method Code | Normal | Code | 10 | Shipment Method Code | nvarchar(20) |
Key to join to the Shipment Method table.Show/hide example querySELECT [Certificate of Supply].[Shipment Method Code] ,[Shipment Method].[Code] FROM [CRONUS UK Ltd_$Certificate of Supply$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Certificate of Supply] LEFT JOIN [CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method] ON [Certificate of Supply].[Shipment Method Code] = [Shipment Method].[Code] | |||||||
9 | Shipment/Posting Date | Shipment/Posting Date | Normal | Date | 4 | Shipment_Posting Date | datetime |
10 | Ship-to Country/Region Code | Ship-to Country/Region Code | Normal | Code | 10 | Ship-to Country_Region Code | nvarchar(20) |
11 | Customer/Vendor No. | Customer/Vendor No. | Normal | Code | 20 | Customer_Vendor No_ | nvarchar(40) |
12 | Vehicle Registration No. | Vehicle Registration No. | Normal | Text | 20 | Vehicle Registration No_ | nvarchar(40) |
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 [Certificate of Supply].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Certificate of Supply$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Certificate of Supply] LEFT JOIN [User] AS [User] ON [Certificate of Supply].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |