Workflow.GetTemplatesForItem Method
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)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function GetTemplatesForItem ( _
item As String _
) As SoapXml.SoapXmlElement
'Usage
Dim instance As Workflow
Dim item As String
Dim returnValue As SoapXml.SoapXmlElement
returnValue = instance.GetTemplatesForItem(item)
[WebMethodAttribute]
public SoapXml.SoapXmlElement GetTemplatesForItem(
string item
)
Parameters
- item
Type: System.String
The URL location of an item which a workflow is being run on.
Return Value
Type: Microsoft.SharePoint.SoapServer.SoapXml.SoapXmlElement
The SoapXml.SoapXmlElement object.
Implements
ISoapServerWorkflow.GetTemplatesForItem(String)
Remarks
You can specify the location of an item 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 instantiation URL 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.