Workflow.GetWorkflowDataForItem Method

Gets the workflow data for a specific user for a given SharePoint item.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/workflow/GetWorkflowDataForItem", RequestNamespace:="http://schemas.microsoft.com/sharepoint/soap/workflow/", ResponseNamespace:="http://schemas.microsoft.com/sharepoint/soap/workflow/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function GetWorkflowDataForItem ( _
    item As String _
) As XmlNode
'Usage
Dim instance As Workflow
Dim item As String
Dim returnValue As XmlNode

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

Parameters

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

Return Value

A System.Xml.XmlNode object.

Remarks

You can specify the location of an item using its full URL, for example:

http://<server>/<customsite>/DocumentLibrary/example.docx

The inner return bodies from the GetWorkflowTaskData and GetToDosForItem methods are included in the return, under the <ToDoData> and <TemplateData> element nodes.

See Also

Reference

Workflow Class
Workflow Members
Workflow Web Service