Workflow.GetTemplatesForItem Method

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

Namespace:  websvcWorkflow
Assembly:  MOSSSOAP (in MOSSSOAP.dll)

Syntax

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

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

Parameters

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

Return Value

Type: System.Xml.XmlNode
A System.Xml.XmlNode object.

Remarks

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

http://<server>/<customsite>/DocumentLibrary/doc7.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 value is an empty string ("").

See Also

Reference

Workflow Class

Workflow Members

websvcWorkflow Namespace