This topic has not yet been rated - Rate this topic

IWorkflow.GetTemplatesForItem Method

SharePoint 2007
Gets the workflow associations that are available for a specific SharePoint item.

Namespace: Microsoft.Office.Workflow
Assembly: Microsoft.Office.WorkflowSoap (in microsoft.office.workflowsoap.dll)
string GetTemplatesForItem (
	string item
)

Parameters

item

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

Return Value

The workflow associations that are available for a specific SharePoint item.

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.