Forum Discussion

Rémy Bosman's avatar
Rémy Bosman
Brass Contributor
Oct 19, 2016

Office 365 PnP Workflow Provisioning

Hi all,

 

Can anyone tell me which steps I should follow to privision a Reusable SharePoint workflow created with SharePoint Designer? 

Extracting a PnP template with -Handlers Workflows seems to be the first step, but I'm not sure what my VSO project needs to have in order to provision a workflow. 

 

Many thanks,
Rémy Bosman

11 Replies

  • Rémy Bosman,

    The easiest way to figure out how to do this is by using the PowerShell commands

     

    Get-SPOProvisioningtemplate and Apply-SPOProvisioningtemplate

     

    You could run this with or without the Handlers/ExcludeHandlers options. If you just do the workflows you risk not including the columns/content types/lists etc that may be required by the workflow.

     

    If you want tot do this via code then simply replicate the same code as is used within the code used by the above PowerShell commands 

    • Anonymous's avatar
      Anonymous

      Hi Remy,

       

      I am having a simular issue with Csom C#.

       

      Adding VesaJuvonen 

       

      Do you have a way how to upload new wf's with pnp?

      • Deleted, what do you mean by new workflows? Workflows that are not exported from an existing site?

Resources