Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5540
Table Type: Company
Table Name: Timeline Event
Database Table Name: CRONUS UK Ltd_$Timeline Event$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Timeline Event can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Timeline Event$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Transaction Type]
,[Description]
,[Original Date]
,[New Date]
,[ChangeRefNo]
,[Source Line ID]
,[Source Document ID]
,[Original Quantity]
,[New Quantity]
,[ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Timeline Event$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Timeline Event$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Timeline Event]
LEFT JOIN
[CRONUS UK Ltd_$Transaction Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Transaction Type]
ON
[Timeline Event].[Transaction Type] = [Transaction Type].[Code]
LEFT JOIN
[User] AS [User]
ON
[Timeline Event].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Timeline Event].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Timeline Event table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Transaction Type | Transaction Type | Normal | Option | 4 | Transaction Type | int |
Key to join to the Transaction Type table.Show/hide example querySELECT [Timeline Event].[Transaction Type] ,[Transaction Type].[Code] FROM [CRONUS UK Ltd_$Timeline Event$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Timeline Event] LEFT JOIN [CRONUS UK Ltd_$Transaction Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Transaction Type] ON [Timeline Event].[Transaction Type] = [Transaction Type].[Code]
| |||||||
3 | Description | Description | Normal | Text | 250 | Description | nvarchar(500) |
4 | Original Date | Original Date | Normal | Date | 4 | Original Date | datetime |
5 | New Date | New Date | Normal | Date | 4 | New Date | datetime |
6 | ChangeRefNo | ChangeRefNo | Normal | Text | 250 | ChangeRefNo | nvarchar(500) |
9 | Source Line ID | Source Line ID | Normal | RecordID | 448 | Source Line ID | varbinary(448) |
10 | Source Document ID | Source Document ID | Normal | RecordID | 448 | Source Document ID | varbinary(448) |
20 | Original Quantity | Original Quantity | Normal | Decimal | 12 | Original Quantity | decimal(38,38) |
21 | New Quantity | New Quantity | Normal | Decimal | 12 | New Quantity | decimal(38,38) |
1000 | ID | ID | Normal | Integer | 4 | ID | 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 [Timeline Event].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Timeline Event$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Timeline Event] LEFT JOIN [User] AS [User] ON [Timeline Event].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |