Table
WorkflowWorkItemTable
Work items
Holds work items, which are tasks given to users in workflows. Each is identified by a work item ID. A record has a status, a type, a subject and a due date. It links to the workflow, the task element, the queue, the user and the document it refers to.
- Table name
WorkflowWorkItemTable- Module
Workflow- Table group
Framework- Table type
Regular- Data per company
No- Configuration key
None- Primary index
RecId- Replacement key
WorkItemIdx- Key fields
Id- Model
ApplicationFoundation
Fields (38)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
IdUnique ID of the work item. | GuidWorkflowWorkItemInstanceId | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityMssHRTeamsAppPendingLoaEntityand 4 more | |
ActivityIdIdentifier of the workflow activity instance. | GuidWorkflowActivityInstanceId | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
CommentIdPoints to the comment attached to the work item. | GuidWorkflowWorkItemCommentId | No | WorkflowWorkItemCommentTable.Id | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntity |
CompanyIdCompany the work item belongs to. | StringSelectableDataArea | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntity | |
ConfigurationIdIdentifier of the workflow configuration version. | GuidWorkflowConfigurationId | No | WorkflowVersionTable.ConfigurationId | EssWorkflowWorkItemEntityWorkflowWorkItemEntity |
ContextText that gives context for the work item. | String (255)WorkflowWorkItemContext | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
CorrelationIdIdentifier that links the work item to its workflow tracking status. | GuidWorkflowCorrelationId | No | WorkflowTrackingStatusTable.CorrelationId | TrvExpMobileLineApprovalEntityTrvExpMobileReportApprovalEntityEssWorkflowWorkItemEntityand 1 more |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataSourceNameName of the data source related to the work item. | StringDataSourceName | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
DescriptionInstructions for the person who handles the work item. | String (-1)WorkflowStepInstruction | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityMssHRTeamsAppPendingLoaEntityand 6 more | |
DocumentClassIdNumeric ID of the class of the document. | IntegerWorkflowDocumentClassId | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntity | |
DueDateTimeDate and time by which the work item is due. | UtcDateTimeWorkflowDueDateTime | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntity | |
ElementIdThe workflow task element this work item belongs to. | GuidWorkflowElementId | No | WorkflowElementTable.ElementId | EssWorkflowWorkItemEntityWorkflowWorkItemEntityPurchApprovalHeaderEntityand 5 more |
EscalationLevelLevel of escalation reached by the work item. | IntegerWorkflowEscalationLevel | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
IsClaimedYes/No flag showing whether the work item has been claimed. | EnumWorkflowWorkItemClaimedNoYes (enum) | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
IsReadYes/No flag showing whether the work item has been read. | EnumWorkflowWorkItemIsReadNoYes (enum) | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
MenuItemNameName of the menu item linked to the work item. The label is empty.low confidence | StringMenuItemNameDisplay | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NotificationIdPoints to the inbox alert record for the work item. | Int64EventInboxId | No | EventInbox.InboxId | EssWorkflowWorkItemEntityWorkflowWorkItemEntity |
OriginalCorrelationIdCorrelation ID of the original workflow. | GuidWorkflowOriginalCorrelationId | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
ParentCorrelationIdCorrelation ID of the parent workflow. | GuidWorkflowParentCorrelationId | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QueuePoints to the work item queue that holds the item. | Int64WorkflowWorkItemQueueRef | No | WorkflowWorkItemQueue.RecId | EssWorkflowWorkItemEntityWorkflowWorkItemEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | TrvExpMobileLineApprovalEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntityand 13 more | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RefRecIdSystem record ID of the document the work item refers to. | Int64RefRecId | Yes | TrvExpMobileLineApprovalEntityHRAdminPendingHireActionsEntityMssHRTeamsAppPendingLoaEntityand 2 more | |
RefTableIdID of the table of the document the work item refers to. | IntegerRefTableId | Yes | TrvExpMobileReportApprovalEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntityand 2 more | |
RootCorrelationIdCorrelation ID of the root workflow. | GuidWorkflowRootCorrelationId | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
StatusCurrent state of the work item: pending, delegated, completed or failed. | EnumWorkflowWorkItemStatus (enum) | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityWorkflowWorkItemEntityand 1 more | |
StepIdIdentifier of the workflow activity instance, as for the activity ID field. | GuidWorkflowActivityInstanceId | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
SubjectShort subject line of the work item. | String (128)WorkflowWorkItemSubject | No | EssWorkflowWorkItemEntityHRAdminPendingHireActionsEntityMssHRTeamsAppPendingLoaEntityand 2 more | |
SubWorkflowIdIdentifier of the subworkflow. | GuidWorkflowSubWorkflowId | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntity | |
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 | |
TypeKind of work item, such as work item, return or escalation. | EnumWorkflowWorkItemType (enum) | No | EssWorkflowWorkItemEntityWorkflowWorkItemEntityPurchApprovalHeaderEntityand 5 more | |
UserIdThe user the work item is assigned to. | StringWorkflowUser | No | TrvExpMobileLineApprovalEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntityand 27 more |
Indexes (10)
WorkItemIdxReplacement keyUnique, alternate key.
ActivityIdUnique, alternate key.
DocumentRefTableId,RefRecId,CompanyId,UserId,StatusNot unique.
StatusNot unique.
RootCorrelationIdxNot unique.
CorrelationStepIdxNot unique.
ElementIdxNot unique.
QueueNot unique.
UserIdxNot unique.
CorrelationIdxNot unique.
Relations (8)
Each relation joins WorkflowWorkItemTable to another table on the fields shown.
Common→CommonJoin on
RefTableId = Common.TableId,RefRecId = Common.RecId,CompanyId = Common.dataAreaIdCardinality not set in the metadata.
EventInbox→EventInboxJoin on
NotificationId = EventInbox.InboxIdMany WorkflowWorkItemTable records → zero or one EventInbox record
UserInfo→UserInfoJoin on
UserId = UserInfo.idMany WorkflowWorkItemTable records → zero or one UserInfo record
WorkflowElementTable→WorkflowElementTableJoin on
ElementId = WorkflowElementTable.ElementIdMany WorkflowWorkItemTable records → zero or one WorkflowElementTable record
WorkflowVersionTable→WorkflowVersionTableJoin on
ConfigurationId = WorkflowVersionTable.ConfigurationIdMany WorkflowWorkItemTable records → zero or one WorkflowVersionTable record
WorkflowWorkItem→WorkflowWorkItemQueueJoin on
Queue = WorkflowWorkItemQueue.RecIdMany WorkflowWorkItemTable records → zero or one WorkflowWorkItemQueue record
WorkflowWorkItemCommentTable→WorkflowWorkItemCommentTableJoin on
CommentId = WorkflowWorkItemCommentTable.IdMany WorkflowWorkItemTable records → zero or one WorkflowWorkItemCommentTable record
WorkflowTrackingStatusTable→WorkflowTrackingStatusTableJoin on
CorrelationId = WorkflowTrackingStatusTable.CorrelationIdMany WorkflowWorkItemTable records → zero or one WorkflowTrackingStatusTable record
Get this data out
Tables are not exposed directly. These public entities read from WorkflowWorkItemTable; use one of them in Power BI, Power Platform or a data management project.
TrvExpMobileLineApprovalEntity· 4 fields from this tableTrvExpMobilePerDiemDataForLineApprovalEntity· 2 fields from this tableTrvExpMobilePerDiemDataForReportApprovalEntity· 2 fields from this tableTrvExpMobileReceiptAttachedToExpenseLineForApprovalEntity· 1 field from this tableTrvExpMobileReportApprovalEntity· 4 fields from this tableEssWorkflowWorkItemEntity· 27 fields from this tableHRAdminPendingHireActionsEntity· 12 fields from this tableMssHRTeamsAppPendingLoaEntity· 5 fields from this tableMssHRTeamsAppPendingTimeoffEntity· 5 fields from this tableWorkflowWorkItemEntity· 29 fields from this tableTrvExpMobileExpenseLineAttachedToReportEntity· 2 fields from this tableTrvExpMobileReceiptAttachedToExpenseLineEntity· 2 fields from this tablePurchApprovalAccountingDistributionEntity· 2 fields from this tableUbuyRequisitionWorkflowApproverEntity· 2 fields from this tableEssLoaRequestDetailApproverEntity· 1 field from this tableEssTimeOffDetailApproverEntity· 1 field from this tableMssLeaveRequestAttachmentEntity· 1 field from this tableMssPendingLeaveRequestWorkflowEntity· 2 fields from this tableMssPendingLoaRequestWorkflowEntity· 2 fields from this tablePurchApprovalAttachedLineEntity· 2 fields from this tablePurchApprovalHeaderEntity· 5 fields from this tablePurchApprovalLineEntity· 5 fields from this tablePurchReqApprovalAttachedLineEntity· 2 fields from this tablePurchReqApprovalHeaderEntity· 5 fields from this tablePurchReqApprovalLineEntity· 5 fields from this tableVendInvoiceApprovalAttachedLineEntity· 2 fields from this tableVendInvoiceApprovalHeaderEntity· 4 fields from this tableVendInvoiceApprovalLineEntity· 4 fields from this tableWorkflowApprovalAttachmentEntity· 2 fields from this tableWorkflowApprovalHistoryEntity· 2 fields from this table
Need help with WorkflowWorkItemTable in a report, an integration or a migration? Talk to Dr Dynamics.