Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1504
Table Type: Company
Table Name: Workflow Step Instance
Database Table Name: CRONUS UK Ltd_$Workflow Step Instance$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 Workflow Step Instance can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Workflow Step Instance$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[ID]
,[Workflow Code]
,[Workflow Step ID]
,[Description]
,[Entry Point]
,[Record ID]
,[Created Date-Time]
,[Created By User ID]
,[Last Modified Date-Time]
,[Last Modified By User ID]
,[Status]
,[Previous Workflow Step ID]
,[Next Workflow Step ID]
,[Type]
,[Function Name]
,[Argument]
,[Original Workflow Code]
,[Original Workflow Step ID]
,[Sequence No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Workflow Step Instance$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Workflow Step Instance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Step Instance]
LEFT JOIN
[CRONUS UK Ltd_$Entry_Exit Point$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Entry/Exit Point]
ON
[Workflow Step Instance].[Entry Point] = [Entry/Exit Point].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Workflow Step$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Step]
ON
[Workflow Step Instance].[Original Workflow Code] = [Workflow Step].[Workflow Code]
LEFT JOIN
[User] AS [User]
ON
[Workflow Step Instance].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Workflow Step Instance].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Workflow Step Instance table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | ID | ID | Normal | GUID | 16 | ID | uniqueidentifier |
2 | Workflow Code | Workflow Code | Normal | Code | 20 | Workflow Code | nvarchar(40) |
3 | Workflow Step ID | Workflow Step ID | Normal | Integer | 4 | Workflow Step ID | int |
4 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
9 | Entry Point | Entry Point | Normal | Boolean | 4 | Entry Point | tinyint |
Key to join to the Entry/Exit Point table.Show/hide example querySELECT [Workflow Step Instance].[Entry Point] ,[Entry/Exit Point].[Code] FROM [CRONUS UK Ltd_$Workflow Step Instance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Step Instance] LEFT JOIN [CRONUS UK Ltd_$Entry_Exit Point$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Entry/Exit Point] ON [Workflow Step Instance].[Entry Point] = [Entry/Exit Point].[Code] | |||||||
11 | Record ID | Record ID | Normal | RecordID | 448 | Record ID | varbinary(448) |
12 | Created Date-Time | Created Date-Time | Normal | DateTime | 8 | Created Date-Time | datetime |
13 | Created By User ID | Created By User ID | Normal | Code | 50 | Created By User ID | nvarchar(100) |
14 | Last Modified Date-Time | Last Modified Date-Time | Normal | DateTime | 8 | Last Modified Date-Time | datetime |
15 | Last Modified By User ID | Last Modified By User ID | Normal | Code | 50 | Last Modified By User ID | nvarchar(100) |
17 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
18 | Previous Workflow Step ID | Previous Workflow Step ID | Normal | Integer | 4 | Previous Workflow Step ID | int |
19 | Next Workflow Step ID | Next Workflow Step ID | Normal | Integer | 4 | Next Workflow Step ID | int |
21 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
22 | Function Name | Function Name | Normal | Code | 128 | Function Name | nvarchar(256) |
23 | Argument | Argument | Normal | GUID | 16 | Argument | uniqueidentifier |
30 | Original Workflow Code | Original Workflow Code | Normal | Code | 20 | Original Workflow Code | nvarchar(40) |
Key to join to the Workflow Step table.Show/hide example querySELECT [Workflow Step Instance].[Original Workflow Code] ,[Workflow Step].[Workflow Code] FROM [CRONUS UK Ltd_$Workflow Step Instance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Step Instance] LEFT JOIN [CRONUS UK Ltd_$Workflow Step$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Step] ON [Workflow Step Instance].[Original Workflow Code] = [Workflow Step].[Workflow Code] | |||||||
31 | Original Workflow Step ID | Original Workflow Step ID | Normal | Integer | 4 | Original Workflow Step ID | int |
32 | Sequence No. | Sequence No. | Normal | Integer | 4 | Sequence No_ | 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 [Workflow Step Instance].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Workflow Step Instance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Workflow Step Instance] LEFT JOIN [User] AS [User] ON [Workflow Step Instance].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |