Workflow.StartWorkflow Method

SharePoint 2007
Starts a workflow on an item for the client.

Web Service: WorkflowWeb Reference: http://<Site>/_vti_bin/Workflow.asmx

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/workflow/StartWorkflow", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/workflow/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/workflow/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode StartWorkflow (
	string item,
	Guid templateId,
	XmlNode workflowParameters
)

Parameters

item

The URL location of an item on which a workflow is being run.

templateId

Globally unique identifier (GUID) of a template.

workflowParameters

The initiation form data.

Return Value

A System.Xml.XmlNode object.

To complete the StartWorkflow call, information about the available workflows for an item must be provided by either the GetWorkflowDataForItem or GetTemplatesForItem method.

The workflowParameters parameter value is passed as the eventData parameter string value to the StartWorkflow method. For more information, see Workflow Association and Initiation Forms (Windows SharePoint Services) in the Windows SharePoint Services 3.0 SDK.

The return value contains no specific data. The return value denotes the end of the transaction.

Community Additions

ADD
Show: