SP.List.defaultContentApprovalWorkflowId property (sp.js)

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

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

var value = SP.List.get_defaultContentApprovalWorkflowId ()
var value = SP.List.set_defaultContentApprovalWorkflowId ()

Return value

Type: SP.Guid

Remarks

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

REST resource endpoint

See List resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/defaultContentApprovalWorkflowId

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/defaultContentApprovalWorkflowId

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/defaultContentApprovalWorkflowId