Designed Query Data Item

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000218

Table Type: System

Table Name: Designed Query Data Item
Database Table Name: Designed Query Data Item

Table Number: 2000000218

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 Designed Query Data Item can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [Designed Query Data Item]

Show/hide an example select of all columns by name

SELECT
   [Query ID]
   ,[Order]
   ,[Name]
   ,[Description]
   ,[Source Reference]
   ,[Join Type]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Designed Query Data Item]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [Designed Query Data Item] AS [Designed Query Data Item]
LEFT JOIN
   [User] AS [User]
      ON
         [Designed Query Data Item].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Designed Query Data Item].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Designed Query Data Item table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Query ID SearchQuery IDNormalBigInteger8Query IDbigint
2Order Primary Key SearchOrderNormalInteger4Orderint
3Name Primary Key SearchNameNormalText120Namenvarchar(240)
4Description SearchDescriptionNormalText250Descriptionnvarchar(500)
5Source Reference SearchSource ReferenceNormalText30Source Referencenvarchar(60)
6Join Type SearchJoin TypeNormalOption4Join Typeint
Available options are:
  • “Inner”
  • “LeftOuter”
  • “RightOuter”
  • “FullOuter”
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
	       [Designed Query Data Item].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [Designed Query Data Item] AS [Designed Query Data Item]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Designed Query Data Item].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

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