Token Cache

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

Table Type: System

Table Name: Token Cache
Database Table Name: Token Cache

Table Number: 2000000197

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

Show/hide an example select of all columns

SELECT
   *
FROM
   [Token Cache]

Show/hide an example select of all columns by name

SELECT
   [User Security ID]
   ,[User Unique ID]
   ,[Tenant ID]
   ,[Cache Write Time]
   ,[Cache Data]
   ,[User String Unique ID]
   ,[Tenant String Unique ID]
   ,[Home Account ID]
   ,[Login Hint]
   ,[Session Cache Key]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Token Cache]

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

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

Show/hide columns in Token Cache table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1User Security ID Primary Key SearchUser Security IDNormalGUID16User Security IDuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Token Cache].[User Security ID]
       ,[User].[User Security ID]
FROM
       [Token Cache] AS [Token Cache]
LEFT JOIN
       [User] AS [User]
              ON
                     [Token Cache].[User Security ID] = [User].[User Security ID]
2User Unique ID SearchUser Unique IDNormalGUID16User Unique IDuniqueidentifier
3Tenant ID SearchTenant IDNormalGUID16Tenant IDuniqueidentifier
4Cache Write Time SearchCache Write TimeNormalDateTime8Cache Write Timedatetime
5Cache Data SearchCache DataNormalBLOB8Cache Dataimage
6User String Unique ID SearchUser String Unique IDNormalText80User String Unique IDnvarchar(160)
7Tenant String Unique ID SearchTenant String Unique IDNormalText80Tenant String Unique IDnvarchar(160)
8Home Account ID SearchHome Account IDNormalText120Home Account IDnvarchar(240)
9Login Hint SearchLogin HintNormalText120Login Hintnvarchar(240)
10Session Cache Key SearchSession Cache KeyNormalText120Session Cache Keynvarchar(240)
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
       [Token Cache].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [Token Cache] AS [Token Cache]
LEFT JOIN
       [User] AS [User]
              ON
                     [Token Cache].[$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
       [Token Cache].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [Token Cache] AS [Token Cache]
LEFT JOIN
       [User] AS [User]
              ON
                     [Token Cache].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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