Company

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

Table Type: System

Table Name: Company
Database Table Name: Company

Table Number: 2000000006

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 Company can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [Company]

Show/hide an example select of all columns by name

SELECT
   [Name]
   ,[Evaluation Company]
   ,[Display Name]
   ,[Id]
   ,[Business Profile Id]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Company]

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

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

Show/hide columns in Company table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Name Primary Key SearchNameNormalText30Namenvarchar(60)
2Evaluation Company SearchEvaluation CompanyNormalBoolean4Evaluation Companytinyint
3Display Name SearchDisplay NameNormalText250Display Namenvarchar(500)
8000Id SearchIdNormalGUID16Iduniqueidentifier
8005Business Profile Id SearchBusiness Profile IdNormalText250Business Profile Idnvarchar(500)
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
       [Company].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [Company] AS [Company]
LEFT JOIN
       [User] AS [User]
              ON
                     [Company].[$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
       [Company].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [Company] AS [Company]
LEFT JOIN
       [User] AS [User]
              ON
                     [Company].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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