Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1113
Table Type: Company
Table Name: Cost Object
Database Table Name: CRONUS UK Ltd_$Cost Object$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 Cost Object can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Code]
,[Name]
,[Sorting Order]
,[Comment]
,[Line Type]
,[Blocked]
,[New Page]
,[Blank Line]
,[Indentation]
,[Totaling]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[] AS [Cost Object]
LEFT JOIN
[CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
ON
[Cost Object].[Cost Type Filter] = [Cost Type].[No_]
LEFT JOIN
[User] AS [User]
ON
[Cost Object].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Cost Object].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Cost Object table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Code | Code | Normal | Code | 20 | Code | nvarchar(40) |
2 | Name | Name | Normal | Text | 50 | Name | nvarchar(100) |
3 | Cost Type Filter | Cost Type Filter | FlowFilter | Code | 20 | ||
Key to join to the Cost Type table.Show/hide example querySELECT [Cost Object].[] ,[Cost Type].[No_] FROM [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object] LEFT JOIN [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] ON [Cost Object].[] = [Cost Type].[No_] | |||||||
4 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
5 | Net Change | Net Change | FlowField | Decimal | 12 | ||
6 | Balance at Date | Balance at Date | FlowField | Decimal | 12 | ||
7 | Sorting Order | Sorting Order | Normal | Code | 10 | Sorting Order | nvarchar(20) |
8 | Comment | Comment | Normal | Text | 50 | Comment | nvarchar(100) |
9 | Line Type | Line Type | Normal | Option | 4 | Line Type | int |
Available options are:
| |||||||
10 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
11 | New Page | New Page | Normal | Boolean | 4 | New Page | tinyint |
12 | Blank Line | Blank Line | Normal | Boolean | 4 | Blank Line | tinyint |
13 | Indentation | Indentation | Normal | Integer | 4 | Indentation | int |
14 | Totaling | Totaling | Normal | Text | 250 | Totaling | nvarchar(500) |
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 [Cost Object].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object] LEFT JOIN [User] AS [User] ON [Cost Object].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |