SP.Workflow.WorkflowTemplateCollection.getById Method (sp.js)
Returns a workflow template based on Id.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Workflow.WorkflowTemplateCollection.getById(templateId)
Parameters
templateId
Type: SP.GuidThe name of the workflow template to retrieve.
Return value
Type: SP.Workflow.WorkflowTemplate
Remarks
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.