Table
WorkflowTrackingStatusTable
Workflow tracking status table
One record per workflow instance, holding its status, workflow configuration, company, document and the users involved. The key is the instance number. Used with workflow tracking records for approval history.
- Table name
WorkflowTrackingStatusTable- Module
Workflow- Table group
Framework- Table type
Regular- Data per company
No- Configuration key
None- Primary index
RecId- Replacement key
InstanceNumberIdx- Key fields
InstanceNumber- Model
ApplicationFoundation
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InstanceNumberID of the workflow instance; it is the table key. | String (20)WorkflowInstanceNumber | No | None | |
ConfigurationNameName of the workflow configuration. | String (60)WorkflowConfigurationName | No | None | |
ConfigurationNumberID of the workflow configuration, pointing to a workflow configuration. | String (20)WorkflowSequenceNumber | No | WorkflowTable.SequenceNumber | None |
ConfigurationVersionIdVersion of the workflow configuration. | StringWorkflowConfigurationVersionId | No | None | |
ContextCompanyIdCompany the workflow runs in, pointing to a legal entity. | StringCompanyId | Yes | CompanyInfo.DataArea | None |
ContextRecIdSystem record ID of the record the workflow is running on. | Int64WorkflowContextRecId | Yes | None | |
ContextTableIdNumber of the table the workflow is running on. | IntegerWorkflowContextTableId | Yes | None | |
CorrelationIdGUID that ties the record to a workflow, pointing to a workflow table. | GuidWorkflowCorrelationId | Yes | SysWorkflowTable.WorkflowCorrelationId | None |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DocumentCaption of the document the workflow is about. | String (255)TableCaption | No | None | |
DocumentTypeType of the document the workflow is about. | String (250)TableLabel | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OriginatorUser who started the workflow. | StringWorkflowUser | Yes | None | |
OwnerUser who owns the workflow. | StringWorkflowOwner | No | None | |
ParentCorrelationIdCorrelation ID of the parent workflow. | GuidWorkflowParentCorrelationId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RootCorrelationIdCorrelation ID of the top-level workflow. | GuidWorkflowRootCorrelationId | No | None | |
SubWorkflowIdGUID of the subworkflow. | GuidWorkflowSubWorkflowId | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TrackingStatusStatus of the workflow: pending, completed, canceled, stopped or unrecoverable. | EnumWorkflowTrackingStatus (enum) | No | None | |
WorkflowTypeWhether this is a workflow, a dependent subworkflow or an independent subworkflow. | EnumWorkflowTrackingStatusWorkflowType (enum) | No | None | |
WorkflowVersionTablePoints to the workflow configuration version. | Int64RefRecId | No | WorkflowVersionTable.RecId | None |
Indexes (8)
RootCorrelationIdxNot unique.
CorrelationIdxUnique, alternate key.
DocumentIdxContextCompanyId,ContextTableId,ContextRecIdNot unique.
ParentCorrelationIdxNot unique.
WorkflowVersionTableIdxNot unique.
OriginatorIdxOriginator,ContextRecId,ContextTableId,TrackingStatusNot unique.
DocumentRecIdIdxNot unique.
InstanceNumberIdxReplacement keyUnique, alternate key.
Relations (9)
Each relation joins WorkflowTrackingStatusTable to another table on the fields shown.
Correlation→SysWorkflowTableJoin on
CorrelationId = SysWorkflowTable.WorkflowCorrelationIdExactly one WorkflowTrackingStatusTable record → exactly one SysWorkflowTable record
DataArea→DataAreaJoin on
ContextCompanyId = DataArea.id,DataArea.isVirtual = nullMany WorkflowTrackingStatusTable records → exactly one DataArea record
Originator→UserInfoJoin on
Originator = UserInfo.idMany WorkflowTrackingStatusTable records → exactly one UserInfo record
Owner→UserInfoJoin on
Owner = UserInfo.idMany WorkflowTrackingStatusTable records → zero or one UserInfo record
ParentCorrelation→SysWorkflowTableJoin on
ParentCorrelationId = SysWorkflowTable.ParentCorrelationIdExactly one WorkflowTrackingStatusTable record → zero or one SysWorkflowTable record
RootCorrelation→SysWorkflowTableJoin on
RootCorrelationId = SysWorkflowTable.RootCorrelationIdExactly one WorkflowTrackingStatusTable record → zero or one SysWorkflowTable record
WorkflowTable→WorkflowTableJoin on
ConfigurationNumber = WorkflowTable.SequenceNumber,WorkflowTable.Type = nullMany WorkflowTrackingStatusTable records → zero or one WorkflowTable record
WorkflowVersion→WorkflowVersionTableJoin on
WorkflowVersionTable = WorkflowVersionTable.RecIdMany WorkflowTrackingStatusTable records → zero or one WorkflowVersionTable record
Company→CompanyInfoJoin on
ContextCompanyId = CompanyInfo.DataAreaMany WorkflowTrackingStatusTable records → exactly one CompanyInfo record
Get this data out
Tables are not exposed directly. These public entities read from WorkflowTrackingStatusTable; use one of them in Power BI, Power Platform or a data management project.
WorkflowApprovalHistoryEntity· 0 fields from this table
Need help with WorkflowTrackingStatusTable in a report, an integration or a migration? Talk to Dr Dynamics.