Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1270
Table Type: Company
Table Name: OCR Service Setup
Database Table Name: CRONUS UK Ltd_$OCR Service 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 OCR Service Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$OCR Service Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[User Name]
,[Password Key]
,[Sign-up URL]
,[Service URL]
,[Sign-in URL]
,[Authorization Key]
,[Customer Name]
,[Customer ID]
,[Customer Status]
,[Organization ID]
,[Default OCR Doc_ Template]
,[Enabled]
,[Master Data Sync Enabled]
,[Master Data Last Sync]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$OCR Service 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_$OCR Service Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [OCR Service Setup]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[OCR Service Setup].[Customer Id] = [Customer].[$systemId]
LEFT JOIN
[User] AS [User]
ON
[OCR Service Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[OCR Service Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in OCR Service 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 | User Name | User Name | Normal | Text | 50 | User Name | nvarchar(100) |
3 | Password Key | Password Key | Normal | GUID | 16 | Password Key | uniqueidentifier |
4 | Sign-up URL | Sign-up URL | Normal | Text | 250 | Sign-up URL | nvarchar(500) |
5 | Service URL | Service URL | Normal | Text | 250 | Service URL | nvarchar(500) |
6 | Sign-in URL | Sign-in URL | Normal | Text | 250 | Sign-in URL | nvarchar(500) |
7 | Authorization Key | Authorization Key | Normal | GUID | 16 | Authorization Key | uniqueidentifier |
8 | Customer Name | Customer Name | Normal | Text | 80 | Customer Name | nvarchar(160) |
9 | Customer ID | Customer ID | Normal | Text | 50 | Customer ID | nvarchar(100) |
Key to join to the Customer table.Show/hide example querySELECT [OCR Service Setup].[Customer ID] ,[Customer].[$systemId] FROM [CRONUS UK Ltd_$OCR Service Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [OCR Service Setup] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [OCR Service Setup].[Customer ID] = [Customer].[$systemId] | |||||||
10 | Customer Status | Customer Status | Normal | Text | 30 | Customer Status | nvarchar(60) |
11 | Organization ID | Organization ID | Normal | Text | 50 | Organization ID | nvarchar(100) |
12 | Default OCR Doc. Template | Default OCR Doc. Template | Normal | Code | 20 | Default OCR Doc_ Template | nvarchar(40) |
Key to join to the OCR Service Document Template table.Show/hide example querySELECT [OCR Service Setup].[Default OCR Doc_ Template] ,[OCR Service Document Template].[Code] FROM [CRONUS UK Ltd_$OCR Service Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [OCR Service Setup] LEFT JOIN [CRONUS UK Ltd_$OCR Service Document Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [OCR Service Document Template] ON [OCR Service Setup].[Default OCR Doc_ Template] = [OCR Service Document Template].[Code] | |||||||
13 | Enabled | Enabled | Normal | Boolean | 4 | Enabled | tinyint |
14 | Master Data Sync Enabled | Master Data Sync Enabled | Normal | Boolean | 4 | Master Data Sync Enabled | tinyint |
15 | Master Data Last Sync | Master Data Last Sync | Normal | DateTime | 8 | Master Data Last Sync | datetime |
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 [OCR Service Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$OCR Service Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [OCR Service Setup] LEFT JOIN [User] AS [User] ON [OCR Service Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |