SP.Workflow.WorkflowTemplateCollection.getById Method (sp.js)
Returns a workflow template based on Id.
Last modified: June 25, 2013
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
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.