WorkflowContext.ItemId property

Gets the identifier of the list item on which the workflow instance is running.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public ReadOnly Property ItemId As Integer
    Get
'Usage
Dim instance As WorkflowContext
Dim value As Integer

value = instance.ItemId
public int ItemId { get; }

Property value

Type: System.Int32
The identifier of the list item.

Remarks

If the workflow is a site workflow, the value is -1.

See also

Reference

WorkflowContext class

WorkflowContext members

Microsoft.SharePoint.WorkflowActions namespace