Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/9053
Table Type: Company
Table Name: Sales Cue
Database Table Name: CRONUS UK Ltd_$Sales Cue$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 Sales Cue can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Sales Cue$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Average Days Delayed]
,[Avg_ Days Delayed Updated On]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Sales Cue$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Sales Cue$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cue]
LEFT JOIN
[User] AS [User]
ON
[Sales Cue].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Sales Cue].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Sales Cue table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Code | 10 | Primary Key | nvarchar(20) |
2 | Sales Quotes – Open | Sales Quotes – Open | FlowField | Integer | 4 | ||
3 | Sales Orders – Open | Sales Orders – Open | FlowField | Integer | 4 | ||
4 | Ready to Ship | Ready to Ship | FlowField | Integer | 4 | ||
5 | Delayed | Delayed | FlowField | Integer | 4 | ||
6 | Sales Return Orders – Open | Sales Return Orders – Open | FlowField | Integer | 4 | ||
7 | Sales Credit Memos – Open | Sales Credit Memos – Open | FlowField | Integer | 4 | ||
8 | Partially Shipped | Partially Shipped | FlowField | Integer | 4 | ||
9 | Average Days Delayed | Average Days Delayed | Normal | Decimal | 12 | Average Days Delayed | decimal(38,38) |
10 | Sales Inv. – Pending Doc.Exch. | Sales Invoices – Pending Document Exchange | FlowField | Integer | 4 | ||
12 | Sales CrM. – Pending Doc.Exch. | Sales Credit Memos – Pending Document Exchange | FlowField | Integer | 4 | ||
13 | Avg. Days Delayed Updated On | Average Days Delayed Updated On | Normal | DateTime | 8 | Avg_ Days Delayed Updated On | datetime |
20 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
21 | Date Filter2 | Date Filter 2 | FlowFilter | Date | 4 | ||
22 | Responsibility Center Filter | Responsibility Center Filter | FlowFilter | Code | 10 | ||
23 | User ID Filter | User ID Filter | FlowFilter | Code | 50 | ||
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 [Sales Cue].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Sales Cue$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cue] LEFT JOIN [User] AS [User] ON [Sales Cue].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |