Table of contents
TOC
Collapse the table of content
Expand the table of content

WorkflowExtensions.AddWorkflowDefinition Method

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Adds a workflow definition

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static Guid AddWorkflowDefinition(this Web web, WorkflowDefinition definition, Boolean publish = True)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  the target web

definition

  Type: Microsoft.SharePoint.Client.WorkflowServices.WorkflowDefinition
  the workflow definition to add

(optional) publish

  Type: System.Boolean
  specify true to publish workflow definition

Return Value

Type: Guid

See also

© 2018 Microsoft