WorkflowInstanceService.StartWorkflowOnListItem method
Starts a Workflow Manager Client 1.0 instance of the specified WorkflowSubscription on the list item.
Namespace: Microsoft.SharePoint.WorkflowServices
Assembly: Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)
Syntax
'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Function StartWorkflowOnListItem ( _
subscription As WorkflowSubscription, _
itemId As Integer, _
payload As IDictionary(Of String, Object) _
) As Guid
'Usage
Dim instance As WorkflowInstanceService
Dim subscription As WorkflowSubscription
Dim itemId As Integer
Dim payload As IDictionary(Of String, Object)
Dim returnValue As Guid
returnValue = instance.StartWorkflowOnListItem(subscription, _
itemId, payload)
[ClientCallableMethodAttribute]
public abstract Guid StartWorkflowOnListItem(
WorkflowSubscription subscription,
int itemId,
IDictionary<string, Object> payload
)
Parameters
subscription
Type: Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionThe subscription associated with the workflow instance.
itemId
Type: System.Int32The integer id of the list item on which to start the workflow instance.
payload
Type: System.Collections.Generic.IDictionary<String, Object>IDictionary object that contains name-value pairs of parameter names and values to pass into the workflow instance.
Return value
Type: System.Guid
Returns the workflow instance to be started, with id of the list item on which to start.