Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000067
Table Type: System
Table Name: User Default Style Sheet
Database Table Name: User Default Style Sheet
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 Default Style Sheet can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[User Default Style Sheet]
Show/hide an example select of all columns by name
SELECT
[User ID]
,[Object Type]
,[Object ID]
,[Program ID]
,[Style Sheet ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[User Default Style Sheet]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[User Default Style Sheet] AS [User Default Style Sheet]
LEFT JOIN
[User] AS [User]
ON
[User Default Style Sheet].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[User Default Style Sheet].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in User Default Style Sheet table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | User ID | User ID | Normal | GUID | 16 | User ID | uniqueidentifier |
2 | Object Type | Object Type | Normal | Option | 4 | Object Type | int |
Available options are:
| |||||||
3 | Object ID | Object ID | Normal | Integer | 4 | Object ID | int |
4 | Program ID | Program ID | Normal | GUID | 16 | Program ID | uniqueidentifier |
5 | Style Sheet ID | Style Sheet ID | Normal | GUID | 16 | Style Sheet ID | uniqueidentifier |
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 Default Style Sheet].[$systemCreatedBy] ,[User].[User Security ID] FROM [User Default Style Sheet] AS [User Default Style Sheet] LEFT JOIN [User] AS [User] ON [User Default Style Sheet].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |