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 descriptionType / EDT / enumMandatoryReferencesIn public entities
InstanceNumberID of the workflow instance; it is the table key.String (20)
WorkflowInstanceNumber
NoNone
ConfigurationNameName of the workflow configuration.String (60)
WorkflowConfigurationName
NoNone
ConfigurationNumberID of the workflow configuration, pointing to a workflow configuration.String (20)
WorkflowSequenceNumber
NoWorkflowTable.SequenceNumberNone
ConfigurationVersionIdVersion of the workflow configuration.String
WorkflowConfigurationVersionId
NoNone
ContextCompanyIdCompany the workflow runs in, pointing to a legal entity.String
CompanyId
YesCompanyInfo.DataAreaNone
ContextRecIdSystem record ID of the record the workflow is running on.Int64
WorkflowContextRecId
YesNone
ContextTableIdNumber of the table the workflow is running on.Integer
WorkflowContextTableId
YesNone
CorrelationIdGUID that ties the record to a workflow, pointing to a workflow table.Guid
WorkflowCorrelationId
YesSysWorkflowTable.WorkflowCorrelationIdNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DocumentCaption of the document the workflow is about.String (255)
TableCaption
NoNone
DocumentTypeType of the document the workflow is about.String (250)
TableLabel
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OriginatorUser who started the workflow.String
WorkflowUser
YesNone
OwnerUser who owns the workflow.String
WorkflowOwner
NoNone
ParentCorrelationIdCorrelation ID of the parent workflow.Guid
WorkflowParentCorrelationId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RootCorrelationIdCorrelation ID of the top-level workflow.Guid
WorkflowRootCorrelationId
NoNone
SubWorkflowIdGUID of the subworkflow.Guid
WorkflowSubWorkflowId
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TrackingStatusStatus of the workflow: pending, completed, canceled, stopped or unrecoverable.Enum
WorkflowTrackingStatus (enum)
NoNone
WorkflowTypeWhether this is a workflow, a dependent subworkflow or an independent subworkflow.Enum
WorkflowTrackingStatusWorkflowType (enum)
NoNone
WorkflowVersionTablePoints to the workflow configuration version.Int64
RefRecId
NoWorkflowVersionTable.RecIdNone

Indexes (8)

Relations (9)

Each relation joins WorkflowTrackingStatusTable to another table on the fields shown.

  • Correlation → SysWorkflowTable

    Join on CorrelationId = SysWorkflowTable.WorkflowCorrelationId

    Exactly one WorkflowTrackingStatusTable record → exactly one SysWorkflowTable record

  • DataArea → DataArea

    Join on ContextCompanyId = DataArea.id, DataArea.isVirtual = null

    Many WorkflowTrackingStatusTable records → exactly one DataArea record

  • Originator → UserInfo

    Join on Originator = UserInfo.id

    Many WorkflowTrackingStatusTable records → exactly one UserInfo record

  • Owner → UserInfo

    Join on Owner = UserInfo.id

    Many WorkflowTrackingStatusTable records → zero or one UserInfo record

  • ParentCorrelation → SysWorkflowTable

    Join on ParentCorrelationId = SysWorkflowTable.ParentCorrelationId

    Exactly one WorkflowTrackingStatusTable record → zero or one SysWorkflowTable record

  • RootCorrelation → SysWorkflowTable

    Join on RootCorrelationId = SysWorkflowTable.RootCorrelationId

    Exactly one WorkflowTrackingStatusTable record → zero or one SysWorkflowTable record

  • WorkflowTable → WorkflowTable

    Join on ConfigurationNumber = WorkflowTable.SequenceNumber, WorkflowTable.Type = null

    Many WorkflowTrackingStatusTable records → zero or one WorkflowTable record

  • WorkflowVersion → WorkflowVersionTable

    Join on WorkflowVersionTable = WorkflowVersionTable.RecId

    Many WorkflowTrackingStatusTable records → zero or one WorkflowVersionTable record

  • Company → CompanyInfo

    Join on ContextCompanyId = CompanyInfo.DataArea

    Many 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.

Need help with WorkflowTrackingStatusTable in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk