SP.Workflow.WorkflowTemplate.id property (sp.js)
Gets a value that specifies the workflow template identifier.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value =SP.Workflow.WorkflowTemplate.get_id()
Return value
Type: SP.Guid
Remarks
Every template must have its own unique GUID.