Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 862 Bytes

AddPnPWorkflowDefinition.md

File metadata and controls

28 lines (23 loc) · 862 Bytes

#Add-PnPWorkflowDefinition Adds a workflow definition ##Syntax

Add-PnPWorkflowDefinition -Definition <WorkflowDefinition>
                          [-DoNotPublish [<SwitchParameter>]]
                          [-Web <WebPipeBind>]

##Returns

System.Guid

Returns the Id of the workflow definition

##Parameters

Parameter Type Required Description
Definition WorkflowDefinition True The workflow definition to add.
DoNotPublish SwitchParameter False Overrides the default behaviour, which is to publish workflow definitions.
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

Add-PnPWorkflowDefinition -Definition $wfdef

Adds an existing workflow definition, retrieved by Get-PnPWorkflowDefinition, to a site.