Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/740
Table Type: Company
Table Name: VAT Report Header
Database Table Name: CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext
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 VAT Report Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext]
Show/hide an example select of all columns by name
SELECT
[No_]
,[VAT Report Config_ Code]
,[VAT Report Type]
,[Start Date]
,[End Date]
,[Status]
,[No_ Series]
,[Original Report No_]
,[Period Type]
,[Period No_]
,[Period Year]
,[Message Id]
,[Statement Template Name]
,[Statement Name]
,[VAT Report Version]
,[Submitted By]
,[Submitted Date]
,[Return Period No_]
,[Date Type]
,[Additional Information]
,[Created Date-Time]
,[Amounts in Add_ Rep_ Currency]
,[VATGroup Return]
,[VATGroup Status]
,[VATGroup Settlement Posted]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Header]
LEFT JOIN
[CRONUS UK Ltd_$Email Message$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Email Message]
ON
[VAT Report Header].[Message Id] = [Email Message].[Id]
LEFT JOIN
[CRONUS UK Ltd_$VAT Statement Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Template]
ON
[VAT Report Header].[Statement Template Name] = [VAT Statement Template].[Name]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Report Header table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
2 | VAT Report Config. Code | Tax Report Config. Code | Normal | Option | 4 | VAT Report Config_ Code | int |
Key to join to the VAT Reports Configuration table.Show/hide example querySELECT [VAT Report Header].[VAT Report Config_ Code] ,[VAT Reports Configuration].[VAT Report Type] FROM [CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [VAT Report Header] LEFT JOIN [CRONUS UK Ltd_$VAT Reports Configuration$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reports Configuration] ON [VAT Report Header].[VAT Report Config_ Code] = [VAT Reports Configuration].[VAT Report Type]
| |||||||
3 | VAT Report Type | Tax Report Type | Normal | Option | 4 | VAT Report Type | int |
Available options are:
| |||||||
4 | Start Date | Start Date | Normal | Date | 4 | Start Date | datetime |
5 | End Date | End Date | Normal | Date | 4 | End Date | datetime |
6 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
8 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [VAT Report Header].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [VAT Report Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [VAT Report Header].[No_ Series] = [No. Series].[Code] | |||||||
9 | Original Report No. | Original Report No. | Normal | Code | 20 | Original Report No_ | nvarchar(40) |
10 | Period Type | Period Type | Normal | Option | 4 | Period Type | int |
Available options are:
| |||||||
11 | Period No. | Period No. | Normal | Integer | 4 | Period No_ | int |
12 | Period Year | Period Year | Normal | Integer | 4 | Period Year | int |
13 | Message Id | Message Id | Normal | Text | 250 | Message Id | nvarchar(500) |
Key to join to the Email Message table.Show/hide example querySELECT [VAT Report Header].[Message Id] ,[Email Message].[Id] FROM [CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [VAT Report Header] LEFT JOIN [CRONUS UK Ltd_$Email Message$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Email Message] ON [VAT Report Header].[Message Id] = [Email Message].[Id] | |||||||
14 | Statement Template Name | Statement Template Name | Normal | Code | 10 | Statement Template Name | nvarchar(20) |
Key to join to the VAT Statement Template table.Show/hide example querySELECT [VAT Report Header].[Statement Template Name] ,[VAT Statement Template].[Name] FROM [CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [VAT Report Header] LEFT JOIN [CRONUS UK Ltd_$VAT Statement Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Template] ON [VAT Report Header].[Statement Template Name] = [VAT Statement Template].[Name] | |||||||
15 | Statement Name | Statement Name | Normal | Code | 10 | Statement Name | nvarchar(20) |
16 | VAT Report Version | Tax Report Version | Normal | Code | 10 | VAT Report Version | nvarchar(20) |
17 | Submitted By | Submitted By | Normal | GUID | 16 | Submitted By | uniqueidentifier |
18 | Submitted Date | Submitted Date | Normal | Date | 4 | Submitted Date | datetime |
19 | Return Period No. | Return Period No. | Normal | Code | 20 | Return Period No_ | nvarchar(40) |
20 | Date Type | Date Type | Normal | Option | 4 | Date Type | int |
Available options are:
| |||||||
30 | Additional Information | Additional Information | Normal | Code | 50 | Additional Information | nvarchar(100) |
31 | Created Date-Time | Created Date-Time | Normal | DateTime | 8 | Created Date-Time | datetime |
100 | Amounts in Add. Rep. Currency | Amounts in Add. Rep. Currency | Normal | Boolean | 4 | Amounts in Add_ Rep_ Currency | tinyint |
4800 | VATGroup Return | VATGroup Return | Normal | Boolean | 4 | VATGroup Return | tinyint |
4801 | VATGroup Status | VATGroup Status | Normal | Text | 20 | VATGroup Status | nvarchar(40) |
4802 | VATGroup Settlement Posted | VATGroup Settlement Posted | Normal | Boolean | 4 | VATGroup Settlement Posted | 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 [VAT Report Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [VAT Report Header] LEFT JOIN [User] AS [User] ON [VAT Report Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |