List.DefaultContentApprovalWorkflowId property

Gets or sets a value that specifies the default workflow identifier for content approval on the list.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public Guid DefaultContentApprovalWorkflowId { get; set; }

Property value

Type: System.Guid
Returns a Guid instance representing the default workflow identifier for content approval on the list.

ExceptionCondition
[Microsoft.SharePoint.SPException]

Value is changed, and EnableMinorVersions is set to false, EnableModeration is set to false, or the specified value is not a workflow identifier that is associated with the list. Error code: -2146232832.

It must be an empty GUID if there is no default content approval workflow.

Show: