This documentation is archived and is not being maintained.

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

SharePoint 2013

Returns a workflow template based on Id.

Last modified: June 25, 2013

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



Type: SP.Guid

The name of the workflow template to retrieve.

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