O365 Document Sent History

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

Table Type: Company

Table Name: O365 Document Sent History
Database Table Name: CRONUS UK Ltd_$O365 Document Sent History$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 2158

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 O365 Document Sent History can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$O365 Document Sent History$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Document Type]
   ,[Document No_]
   ,[Posted]
   ,[Created Date-Time]
   ,[Source Type]
   ,[Source No_]
   ,[Job Queue Entry ID]
   ,[Job Last Status]
   ,[Job Completed]
   ,[Notified]
   ,[NotificationCleared]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$O365 Document Sent History$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$O365 Document Sent History$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Document Sent History]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
      ON
         [O365 Document Sent History].[Document Type] = [Sales Header].[Document Type]
      AND
         [O365 Document Sent History].[Document No_] = [Sales Header].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
      ON
         [O365 Document Sent History].[Document Type] = [Sales Header Archive].[Document Type]
      AND
         [O365 Document Sent History].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [O365 Document Sent History].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [O365 Document Sent History].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in O365 Document Sent History table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Document Type Primary Key SearchDocument TypeNormalOption4Document Typeint
Available options are:
  • “Quote”
  • “Order”
  • “Invoice”
  • “Credit Memo”
  • “Blanket Order”
  • “Return Order”
2Document No. Primary Key SearchDocument No.NormalCode20Document No_nvarchar(40)
3Posted Primary Key SearchPostedNormalBoolean4Postedtinyint
4Created Date-Time Primary Key SearchCreated Date-TimeNormalDateTime8Created Date-Timedatetime
7Source Type SearchSource TypeNormalOption4Source Typeint
Available options are:
  • ” “
  • “Customer”
  • “Vendor”
8Source No. SearchSource No.NormalCode20Source No_nvarchar(40)
11Job Queue Entry ID SearchJob Queue Entry IDNormalGUID16Job Queue Entry IDuniqueidentifier
12Job Last Status SearchJob Last StatusNormalOption4Job Last Statusint
Available options are:
  • “”
  • “In Process”
  • “Finished”
  • “Error”
13Job Completed SearchJob CompletedNormalDateTime8Job Completeddatetime
14Notified SearchNotifiedNormalBoolean4Notifiedtinyint
15NotificationCleared SearchNotificationClearedNormalBoolean4NotificationClearedtinyint
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
       [O365 Document Sent History].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$O365 Document Sent History$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Document Sent History]
LEFT JOIN
       [User] AS [User]
              ON
                     [O365 Document Sent History].[$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
       [O365 Document Sent History].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$O365 Document Sent History$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Document Sent History]
LEFT JOIN
       [User] AS [User]
              ON
                     [O365 Document Sent History].[$systemModifiedBy] = [User].[User Security ID]

Show/hide tables related from O365 Document Sent History table

Leave a Reply

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