Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000075
Table Type: System
Table Name: User Metadata
Database Table Name: User Metadata
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 User Metadata can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[User Metadata]
Show/hide an example select of all columns by name
SELECT
[User SID]
,[Page ID]
,[Date]
,[Time]
,[Personalization ID]
,[Page Metadata Delta]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[User Metadata]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[User Metadata] AS [User Metadata]
LEFT JOIN
[User] AS [User]
ON
[User Metadata].[User SID] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[User Metadata].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[User Metadata].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in User Metadata table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
3 | User SID | User SID | Normal | GUID | 16 | User SID | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [User Metadata].[User SID] ,[User].[User Security ID] FROM [User Metadata] AS [User Metadata] LEFT JOIN [User] AS [User] ON [User Metadata].[User SID] = [User].[User Security ID] | |||||||
6 | User ID | User ID | FlowField | Code | 50 | ||
9 | Page ID | Page ID | Normal | Integer | 4 | Page ID | int |
12 | Description | Description | FlowField | Text | 250 | ||
15 | Date | Date | Normal | Date | 4 | Date | datetime |
18 | Time | Time | Normal | Time | 4 | Time | datetime |
21 | Personalization ID | Personalization ID | Normal | Code | 40 | Personalization ID | nvarchar(80) |
24 | Page Metadata Delta | Page Metadata Delta | Normal | BLOB | 8 | Page Metadata Delta | image |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [User Metadata].[$systemCreatedBy] ,[User].[User Security ID] FROM [User Metadata] AS [User Metadata] LEFT JOIN [User] AS [User] ON [User Metadata].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |