IWorkflow.GetToDosForItem Method

Gets the workflow tasks assigned to a specific user for a given SharePoint item.

Namespace:  Microsoft.Office.Workflow
Assembly:  Microsoft.Office.WorkflowSoap (in Microsoft.Office.WorkflowSoap.dll)

Syntax

'Declaration
Function GetToDosForItem ( _
    item As String _
) As String
'Usage
Dim instance As IWorkflow
Dim item As String
Dim returnValue As String

returnValue = instance.GetToDosForItem(item)
string GetToDosForItem(
    string item
)

Parameters

  • item
    Type: System.String
    The URL location of an item on which a workflow is being run.

Return Value

Type: System.String
The information about the tasks associated with the workflow, which is a strict subset of the data provided in the GetWorkflowDataForItem method.

Remarks

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

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

You can also use the full URL to a list to specify the location of an item, for example:

http://<server>/<customsite>/DocumentLibrary/

If you use the full URL to a list, only workflows explicitly associated with the list are returned. The instantiationURL attribute value is an empty string ("").

For examples of how to use the Workflow object model, see the Workflow code sample folder and EnterpriseContentManagementStarterKitSampleGuide document in the ECM Starter Kit folder in the Microsoft Office SharePoint Server 2007 SDK download.

See Also

Reference

IWorkflow Interface

IWorkflow Members

Microsoft.Office.Workflow Namespace