Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000068
Table Type: System
Table Name: Record Link
Database Table Name: Record Link
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 Record Link can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[Record Link]
Show/hide an example select of all columns by name
SELECT
[Link ID]
,[Record ID]
,[URL1]
,[URL2]
,[URL3]
,[URL4]
,[Description]
,[Type]
,[Note]
,[Created]
,[User ID]
,[Company]
,[Notify]
,[To User ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[Record Link]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[Record Link] AS [Record Link]
LEFT JOIN
[Company] AS [Company]
ON
[Record Link].[Company] = [Company].[Name]
LEFT JOIN
[User] AS [User]
ON
[Record Link].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Record Link].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Record Link table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Link ID | Link ID | Normal | Integer | 4 | Link ID | int |
2 | Record ID | Record ID | Normal | RecordID | 448 | Record ID | varbinary(448) |
3 | URL1 | URL1 | Normal | Text | 2048 | URL1 | nvarchar(4096) |
4 | URL2 | URL2 | Normal | Text | 250 | URL2 | nvarchar(500) |
5 | URL3 | URL3 | Normal | Text | 250 | URL3 | nvarchar(500) |
6 | URL4 | URL4 | Normal | Text | 250 | URL4 | nvarchar(500) |
7 | Description | Description | Normal | Text | 250 | Description | nvarchar(500) |
8 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
9 | Note | Note | Normal | BLOB | 8 | Note | image |
10 | Created | Created | Normal | DateTime | 8 | Created | datetime |
11 | User ID | User ID | Normal | Text | 132 | User ID | nvarchar(264) |
12 | Company | Company | Normal | Text | 30 | Company | nvarchar(60) |
Key to join to the Company table.Show/hide example querySELECT [Record Link].[Company] ,[Company].[Name] FROM [Record Link] AS [Record Link] LEFT JOIN [Company] AS [Company] ON [Record Link].[Company] = [Company].[Name] | |||||||
13 | Notify | Notify | Normal | Boolean | 4 | Notify | tinyint |
14 | To User ID | To User ID | Normal | Text | 132 | To User ID | nvarchar(264) |
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 [Record Link].[$systemCreatedBy] ,[User].[User Security ID] FROM [Record Link] AS [Record Link] LEFT JOIN [User] AS [User] ON [Record Link].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |