Service Order Allocation

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

Table Number: 5950

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 NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Entry No. SearchEntry No.NormalInteger4Entry No_int
2Status Primary Key SearchStatusNormalOption4Statusint
Available options are:
  • “Nonactive”
  • “Active”
  • “Finished”
  • “Canceled”
  • “Reallocation Needed”
3Document No. SearchDocument No.NormalCode20Document No_nvarchar(40)
4Allocation Date SearchAllocation DateNormalDate4Allocation Datedatetime
5Resource No. SearchResource No.NormalCode20Resource No_nvarchar(40)
Key to join to the Resource table.

Show/hide example query

SELECT
	       [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_]
6Resource Group No. SearchResource Group No.NormalCode20Resource Group No_nvarchar(40)
Key to join to the Resource Group table.

Show/hide example query

SELECT
	       [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_]
7Service Item Line No. SearchService Item Line No.NormalInteger4Service Item Line No_int
8Allocated Hours SearchAllocated HoursNormalDecimal12Allocated Hoursdecimal(38,38)
9Starting Time SearchStarting TimeNormalTime4Starting Timedatetime
10Finishing Time SearchFinishing TimeNormalTime4Finishing Timedatetime
11Description SearchDescriptionNormalText100Descriptionnvarchar(200)
12Reason Code SearchReason CodeNormalCode10Reason Codenvarchar(20)
Key to join to the Reason Code table.

Show/hide example query

SELECT
	       [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]
13Service Item No. SearchService Item No.NormalCode20Service Item No_nvarchar(40)
Key to join to the Service Item table.

Show/hide example query

SELECT
	       [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_]
14Posted SearchPostedNormalBoolean4Postedtinyint
15Service Item Description SearchService Item DescriptionFlowFieldText100
16Service Item Serial No. SearchService Item Serial No.NormalCode50Service Item Serial No_nvarchar(100)
17Repair Status SearchRepair StatusFlowFieldCode20
18Service Started SearchService StartedNormalBoolean4Service Startedtinyint
19Document Type SearchDocument TypeNormalOption4Document Typeint
Available options are:
  • “Quote”
  • “Order”
  • “Invoice”
  • “Credit Memo”
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [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]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Service Order Allocation table

Leave a Reply

Your email address will not be published. Required fields are marked *