External Event Subscription

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

Table Type: System

Table Name: External Event Subscription
Database Table Name: External Event Subscription

Table Number: 2000000240

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 External Event Subscription can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [External Event Subscription]

Show/hide an example select of all columns by name

SELECT
   [ID]
   ,[App Id]
   ,[Event Name]
   ,[Company Name]
   ,[User Id]
   ,[Notification Url]
   ,[Last Modified Date Time]
   ,[Client State]
   ,[Subscription Type]
   ,[Event Version]
   ,[Subscription State]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [External Event Subscription]

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

SELECT
   *
FROM
   [External Event Subscription] AS [External Event Subscription]
LEFT JOIN
   [Company] AS [Company]
      ON
         [External Event Subscription].[Company Name] = [Company].[Name]
LEFT JOIN
   [User] AS [User]
      ON
         [External Event Subscription].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [External Event Subscription].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in External Event Subscription table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1ID Primary Key SearchIDNormalGUID16IDuniqueidentifier
2App Id SearchApp IdNormalGUID16App Iduniqueidentifier
3Event Name SearchEvent NameNormalText80Event Namenvarchar(160)
4Company Name SearchCompany NameNormalText30Company Namenvarchar(60)
Key to join to the Company table.

Show/hide example query

SELECT
       [External Event Subscription].[Company Name]
       ,[Company].[Name]
FROM
       [External Event Subscription] AS [External Event Subscription]
LEFT JOIN
       [Company] AS [Company]
              ON
                     [External Event Subscription].[Company Name] = [Company].[Name]
5User Id SearchUser IdNormalGUID16User Iduniqueidentifier
6Notification Url SearchNotification UrlNormalText2048Notification Urlnvarchar(4096)
7Last Modified Date Time SearchLast Modified Date TimeNormalDateTime8Last Modified Date Timedatetime
8Client State SearchClient StateNormalText2048Client Statenvarchar(4096)
9Subscription Type SearchSubscription TypeNormalOption4Subscription Typeint
Available options are:
  • “Dataverse”
  • “Webhook”
10Event Version SearchEvent VersionNormalText43Event Versionnvarchar(86)
11Subscription State SearchSubscription StateNormalOption4Subscription Stateint
Available options are:
  • “Active”
  • “Disabled”
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
       [External Event Subscription].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [External Event Subscription] AS [External Event Subscription]
LEFT JOIN
       [User] AS [User]
              ON
                     [External Event Subscription].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [External Event Subscription].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [External Event Subscription] AS [External Event Subscription]
LEFT JOIN
       [User] AS [User]
              ON
                     [External Event Subscription].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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