Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000177
Table Type: System
Table Name: Tenant Profile
Database Table Name: Tenant Profile
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 Tenant Profile can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[Tenant Profile]
Show/hide an example select of all columns by name
SELECT
[App ID]
,[Profile ID]
,[Description]
,[Role Center ID]
,[Default Role Center]
,[Disable Personalization]
,[Metadata]
,[User AL Code]
,[Customization Status]
,[Emit Version]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[Tenant Profile]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[Tenant Profile] AS [Tenant Profile]
LEFT JOIN
[User] AS [User]
ON
[Tenant Profile].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Tenant Profile].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Tenant Profile table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | App ID | App ID | Normal | GUID | 16 | App ID | uniqueidentifier |
2 | Profile ID | Profile ID | Normal | Code | 30 | Profile ID | nvarchar(60) |
3 | Description | Description | Normal | Text | 250 | Description | nvarchar(500) |
4 | Role Center ID | Role Center ID | Normal | Integer | 4 | Role Center ID | int |
5 | Default Role Center | Default Role Center | Normal | Boolean | 4 | Default Role Center | tinyint |
6 | Disable Personalization | Disable Personalization | Normal | Boolean | 4 | Disable Personalization | tinyint |
7 | Metadata | Metadata | Normal | BLOB | 8 | Metadata | image |
8 | User AL Code | User AL Code | Normal | BLOB | 8 | User AL Code | image |
9 | Customization Status | Customization Status | Normal | Option | 4 | Customization Status | int |
Available options are:
| |||||||
10 | Emit Version | Emit Version | Normal | Integer | 4 | Emit Version | int |
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 [Tenant Profile].[$systemCreatedBy] ,[User].[User Security ID] FROM [Tenant Profile] AS [Tenant Profile] LEFT JOIN [User] AS [User] ON [Tenant Profile].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |