Table
SysWorkflowMessageTable
Workflow messages table
Holds messages exchanged by the workflow runtime, keyed by message ID. Each message has a type, a life cycle state and correlation IDs. It also records the company, the context record, and the related user and work item.
- Table name
SysWorkflowMessageTable- Module
Workflow- Table group
Framework- Table type
Regular- Data per company
No- Configuration key
None- Primary index
MessageIdx- Replacement key
MessageIdx- Key fields
MessageId- Model
ApplicationFoundation
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
MessageIdUnique ID of the workflow message. | GuidWorkflowMessageId | No | None | |
ActionNameName of the action or outcome linked to the message. | StringWorkflowOutcomeName | No | None | |
ActivityContextTypeKind of workflow activity the message relates to, such as task, step or subworkflow. | EnumWorkflowActivityContextType (enum) | No | None | |
ActivityInstanceIdID of the workflow activity instance. | GuidWorkflowActivityInstanceId | No | None | |
AssignedUserUser the message is assigned to. | StringWorkflowAssignedUser | No | None | |
AttemptsMaximum number of times the message may be tried. | IntegerWorkflowMessageMaxRetries | No | None | |
AxaptaUserUser linked to the message. | StringWorkflowUser | No | None | |
BatchAffinityID used to group the message with a batch.low confidence | GuidWorkflowMessageBatchAffinity | No | None | |
BookmarkID of the workflow bookmark linked to the message. | GuidWorkflowBookmarkId | No | None | |
ConfigurationIdID of the workflow configuration that the message belongs to. | GuidWorkflowConfigurationId | No | WorkflowVersionTable.ConfigurationId | None |
MessageLifeCycleStateCurrent state of the message, such as queued, dequeued or stopped with an error. | EnumWorkflowMessageLifeCycleState (enum) | No | None | |
MessageTypeKind of message, such as activation, workflow started or task completed. | EnumWorkflowMessageType (enum) | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ParentCorrelationIdCorrelation ID of the parent workflow instance. | 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 root workflow instance. | GuidWorkflowRootCorrelationId | No | None | |
SubWorkflowIdID of the subworkflow linked to the message. | GuidWorkflowSubWorkflowId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WorkflowContextCompanyIdCompany of the record the workflow runs on. | StringCompanyId | No | None | |
WorkflowContextRecIdSystem record ID of the record the workflow runs on. | Int64WorkflowContextRecId | No | None | |
WorkflowContextTableIdID of the table that holds the record the workflow runs on. | IntegerWorkflowContextTableId | No | None | |
WorkflowCorrelationIdUnique ID that ties the message to a workflow instance. | GuidWorkflowCorrelationId | No | None | |
WorkItemInstanceIdID of the work item the message relates to. | GuidWorkflowWorkItemInstanceId | No | WorkflowWorkItemTable.Id | None |
Indexes (6)
MessageIdxPrimary indexReplacement keyUnique, alternate key.
CorrelationIdxWorkflowCorrelationId,MessageLifeCycleStateNot unique.
RootCorrelationRootCorrelationId,MessageLifeCycleStateNot unique.
BatchAffinityIdxBatchAffinity,MessageLifeCycleState,WorkflowCorrelationIdNot unique.
ActivityIdxWorkflowCorrelationId,ActivityInstanceIdNot unique.
ParentCorrelationIdxParentCorrelationId,MessageLifeCycleStateNot unique.
Relations (5)
Each relation joins SysWorkflowMessageTable to another table on the fields shown.
DataArea→DataAreaJoin on
WorkflowContextCompanyId = DataArea.id,DataArea.isVirtual = nullMany SysWorkflowMessageTable records → zero or one DataArea record
UserInfo→UserInfoJoin on
AssignedUser = UserInfo.idMany SysWorkflowMessageTable records → zero or one UserInfo record
UserInfo1→UserInfoJoin on
AxaptaUser = UserInfo.idMany SysWorkflowMessageTable records → zero or one UserInfo record
WorkflowVersionTable→WorkflowVersionTableJoin on
ConfigurationId = WorkflowVersionTable.ConfigurationIdMany SysWorkflowMessageTable records → zero or one WorkflowVersionTable record
WorkflowWorkItemTable→WorkflowWorkItemTableJoin on
WorkItemInstanceId = WorkflowWorkItemTable.IdMany SysWorkflowMessageTable records → zero or one WorkflowWorkItemTable record
Get this data out
No public entity reads from SysWorkflowMessageTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with SysWorkflowMessageTable in a report, an integration or a migration? Talk to Dr Dynamics.