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