SP.Workflow.WorkflowTemplateCollection.getByName(name) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To
Remarks

Returns the workflow template matching the name provided.

var value = SP.Workflow.WorkflowTemplateCollection.getByName(name);

Parameters

  • name
    The name of the workflow template to retrieve.

Type: string

Return Value

Type: SP.Workflow.WorkflowTemplate

Applies To

SP.Workflow.WorkflowTemplateCollection Class

Remarks

It must return the WorkflowTemplate object with Name property equal to the name parameter, or null if no such WorkflowTemplate exists in the collection. All WorkflowTemplate objects in the collection must have a unique value for their Name property. It must not be null.

See Also

Reference

SP.Workflow.WorkflowTemplateCollection Methods

SP.Workflow.WorkflowTemplateCollection Properties

SP.Workflow Namespace