Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5950
Table Type: Company
Table Name: Service Order Allocation
Database Table Name: CRONUS UK Ltd_$Service Order Allocation$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 Service Order Allocation can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[Status]
,[Document No_]
,[Allocation Date]
,[Resource No_]
,[Resource Group No_]
,[Service Item Line No_]
,[Allocated Hours]
,[Starting Time]
,[Finishing Time]
,[Description]
,[Reason Code]
,[Service Item No_]
,[Posted]
,[Service Item Serial No_]
,[Service Started]
,[Document Type]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Allocation]
LEFT JOIN
[CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code]
ON
[Service Order Allocation].[Reason Code] = [Reason Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Service Order Allocation].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Service Order Allocation].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Service Order Allocation].[Document Type] = [Sales Header].[Document Type]
AND
[Service Order Allocation].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[User] AS [User]
ON
[Service Order Allocation].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Service Order Allocation].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Service Order Allocation table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Entry No. | Entry No. | Normal | Integer | 4 | Entry No_ | int |
2 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
3 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
4 | Allocation Date | Allocation Date | Normal | Date | 4 | Allocation Date | datetime |
5 | Resource No. | Resource No. | Normal | Code | 20 | Resource No_ | nvarchar(40) |
Key to join to the Resource table.Show/hide example querySELECT [Service Order Allocation].[Resource No_] ,[Resource].[No_] FROM [CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Allocation] LEFT JOIN [CRONUS UK Ltd_$Resource$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource] ON [Service Order Allocation].[Resource No_] = [Resource].[No_] | |||||||
6 | Resource Group No. | Resource Group No. | Normal | Code | 20 | Resource Group No_ | nvarchar(40) |
Key to join to the Resource Group table.Show/hide example querySELECT [Service Order Allocation].[Resource Group No_] ,[Resource Group].[No_] FROM [CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Allocation] LEFT JOIN [CRONUS UK Ltd_$Resource Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource Group] ON [Service Order Allocation].[Resource Group No_] = [Resource Group].[No_] | |||||||
7 | Service Item Line No. | Service Item Line No. | Normal | Integer | 4 | Service Item Line No_ | int |
8 | Allocated Hours | Allocated Hours | Normal | Decimal | 12 | Allocated Hours | decimal(38,38) |
9 | Starting Time | Starting Time | Normal | Time | 4 | Starting Time | datetime |
10 | Finishing Time | Finishing Time | Normal | Time | 4 | Finishing Time | datetime |
11 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
12 | Reason Code | Reason Code | Normal | Code | 10 | Reason Code | nvarchar(20) |
Key to join to the Reason Code table.Show/hide example querySELECT [Service Order Allocation].[Reason Code] ,[Reason Code].[Code] FROM [CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Allocation] LEFT JOIN [CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code] ON [Service Order Allocation].[Reason Code] = [Reason Code].[Code] | |||||||
13 | Service Item No. | Service Item No. | Normal | Code | 20 | Service Item No_ | nvarchar(40) |
Key to join to the Service Item table.Show/hide example querySELECT [Service Order Allocation].[Service Item No_] ,[Service Item].[No_] FROM [CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Allocation] LEFT JOIN [CRONUS UK Ltd_$Service Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item] ON [Service Order Allocation].[Service Item No_] = [Service Item].[No_] | |||||||
14 | Posted | Posted | Normal | Boolean | 4 | Posted | tinyint |
15 | Service Item Description | Service Item Description | FlowField | Text | 100 | ||
16 | Service Item Serial No. | Service Item Serial No. | Normal | Code | 50 | Service Item Serial No_ | nvarchar(100) |
17 | Repair Status | Repair Status | FlowField | Code | 20 | ||
18 | Service Started | Service Started | Normal | Boolean | 4 | Service Started | tinyint |
19 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
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 [Service Order Allocation].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Service Order Allocation$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Allocation] LEFT JOIN [User] AS [User] ON [Service Order Allocation].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |