SP.Workflow.WorkflowAssociation.autoStartCreate property (sp.js)

Gets or sets a value that specifies whether workflow instances will be created from this workflow association and started automatically when a list item is changed.

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

var value =SP.Workflow.WorkflowAssociation.get_autoStartCreate()
SP.Workflow.WorkflowAssociation.set_autoStartCreate(value)

Return value

Type: Boolean

Remarks

If this workflow association's BaseTempate's AutoStartCreate property is set to false, setting this property will result in no change to its value.