This documentation is archived and is not being maintained.

SP.Workflow.WorkflowTemplateCollection.getByName Method (sp.js)

SharePoint 2013

Returns the workflow template matching the name provided.

Last modified: June 25, 2013

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.Workflow.WorkflowTemplateCollection.getByName(name)
          

name

Type: String

The name of the workflow template to retrieve.

It must return the SP.Workflow.WorkflowTemplate object (sp.js) 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.

Show: