Share via


SP.WorkflowServices.WorkflowSubscription.enabled property (sp.workflowservices)

Gets or sets a Boolean value that enables or disables the workflow subscription. When disabled, new instances of the subscription cannot be started, but existing instances will continue to run.

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

var value = SP.WorkflowServices.WorkflowSubscription.get_enabled()
SP.WorkflowServices.WorkflowSubscription.set_enabled(value)

Return value

Returns true to enable the subscription. Otherwise returns false.